PDA

View Full Version : Username and Passcode HTML coding


Red Web
05-22-2006, 07:05 AM
For my site I am trying to create a login, and edit the html so it sends you do a different site according to your login name.



For example. Username: "25" Password:"****"

www.website.com/sales-id"username"

so the url that the person will be transfered too will be:www.website.com/sales-id22



If you could please help me thank you very much.

hujtec
06-04-2006, 07:59 PM
It is PHP not HTML and your problem is not as easy as it seems.

header('Location: /sales-id'.$_POST['username']);

..this will forward you to the right location. But this does not check the password. To do that your script should get the POST variables and post them to the new location.

There is probably a better way...