View Full Version : Password protection in PHP

04-17-2003, 10: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 :

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 .

04-17-2003, 10: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 .

04-17-2003, 03: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...