Login Script Question:

Hey Guys,

I’m pretty new to PHP and I’ve been playing with it for a while. I learned how to make a simple login script, but I realized I don’t understand how to put it to work. The login script I’ve made ‘works’ but I can’t figure out how to have it forward the user to a new page. I’m not sure what PHP can do for me, I searched for about an hour so far, tried a few things, the closest I got was the ‘include’ command but that made my page look funky.

In short, basically I want the person if they type in the correct login / pass to be forwarded to a new page. At this point I’m not concerned with security, etc since I’m just playing around and learning.

If you need more information let me know!

At the top of every page, before ANY html is printed out have


at the top of the page…

login.php should process the login form and start the sessions…

you can make pages that require people to be logged in the view, and so on…

Here is an example:

http://www.acecoolco.com/tutorials/27/s … al_29.html

There is a bug in my php code processing, so there may be a parse error in the code…

Sponsor our Newsletter | Privacy Policy | Terms of Service