...

View Full Version : Password protection in PHP



bahy
04-17-2003, 09:04 AM
Hi all ! I am doing a login form with this script :


<form method = post action = "<? echo $PHPSELF ?> >
< input type = text name=username> <br>
<input type =password name=password >
<input type = submit >


then after submit ( with the error or right username and password ) on the address bar always has this line :
"localhost/test/login.php=?username=bahy&password=123"

This will let the others to know my user password , then how do i code the user's password and sent it to the address bar so that noone can see the user's password .

bahy
04-17-2003, 09:10 AM
Futher more , all the script above is in short , and work well . The problem is only in the code the password script , if i don't code it , it will be so clear for event a baby to know .

weronpc
04-17-2003, 02:30 PM
If you use method = post, the username and password will not show in the address bar (url).

in your php script, $_POST[username] to retrieve the user name.

I hope this is what you asking for...

Mike



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum