Why should I rely on PHPJabbers.com for all my PHP scripting needs? What do you offer me when buying some script?
  • Top quality scripts
  • Full demo before buying
  • Best pricing
  • Script customization
  • 7 days a week support
  • Installation support
  • Secure buying
  • Create user login in PHP

    posted on 2006-10-03 22:05:11
    Comments
    Tyler posted on 2008-02-05 06:25:32
    I have something like this:

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /xxxx/xxxxxx/public_html/xxxx/login.php:7) in /home/xxxxx/public_html/xxxxx/login.php on line 8
    before and after I loggin..
    ////the loggin function and everything is fine except that warning.
    -----------------------
    Veselin: session_start() shoult be at the very top of your PHP file

    Art posted on 2008-02-01 23:10:33
    Hello, Can someone please copy and paste the code so the page will be re-directed to the main "registered user area" ? I tried everything off of "Dan's post on 2007-07-23 20:23:09" but it still doesnt work....everything works perfect, except the re-direct. Thank you for sharing this info.

    Art posted on 2008-01-31 19:29:28
    Great scripts. thanks - once they login, it appears that it doesn't automaticaly logout once the user leaves the website...Is there a way that will ogout the user when they exit the site ?

    Thank you

    wireton posted on 2008-01-20 08:13:28
    I have used the tutorial on how to create user loging with php- works great and easy.
    once the user is loged in it say your logged in, I need it to redirect itself to another php page, I have inserted the info provided on the tutorial but I am not getting any where
    tx
    ----------------------
    Veselin: see Dan's post on 2007-07-23 20:23:09

    mhonchelle posted on 2008-01-16 12:46:17
    i have this login page, but you can go to the main page with logging in, can anybody please help me how to redirected all the users to the log in page every time they'll try to go straight to the main page. I'm new at php code...

    Josh posted on 2008-01-14 12:53:52
    Hello.I'm trying to type the username and password but it stills say invalid username and password.Is there something els i have to add.Please help.

    Thanks

    Matt posted on 2008-01-09 05:15:49
    I get this someone please help me.


    Warning: main(passwords.php): failed to open stream: No such file or directory in c:\\program files\\easyphp\\www\\login.php on line 3

    Warning: main(): Failed opening \'passwords.php\' for inclusion (include_path=\'.;C:/Program Files/EasyPHP\\php\\pear\\\') in c:\\program files\\easyphp\\www\\login.php on line 3

    Notice: Undefined variable: USERS in c:\\program files\\easyphp\\www\\login.php on line 5
    Incorrect username/password. Please, try again.
    Notice: Undefined variable: USERS in c:\\program files\\easyphp\\www\\login.php on line 11

    Warning: array_key_exists(): The second argument should be either an array or an object in c:\\program files\\easyphp\\www\\login.php on line 11

    Spencer K posted on 2007-12-20 02:11:44
    Hi,

    How do you make a logout thing?

    Any suggestions?
    Spencer

    Zoomit posted on 2007-12-13 23:51:06
    If I wanted to write this in my program... Microsoft front page. how would I writeit. It doesn't support php.

    sivaprasad posted on 2007-12-07 20:50:22
    How to creage login page in php with form validation and using sessions. If user name and password is correct then open the new page how is it.

    Pages:   1 2 3 4 5 6 7
       
    If you have any additions, suggestions or modifications for this example please contact us or use the form below.
       
    Your name:
    Your email: (email address will not be posted on the web site)
    Comment:
    Verification