开发者

Section of website to be protected by a login

I have a section of my website where I will have forms. I only want people who have registered with the site to be able to use these forms so that I only have serious customers using them. So what i want to have is a way tha开发者_Go百科t people can register on the site and once registered the area with the forms will be available to them and I will know who has sent me a form etc.


use session for example after he login use session_register("myusername");

and in your website, put this

session_start(); if(session_is_registered(myusername)) { // your forms };


after he login use $_SESSION['login']=1;

if your site :

if(isset($_SESSION['login']))

{

// your forms };


Perhaps this is what you need?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜