Posted by David Gillen on 11/11/05 17:46
An noise sounding like Greg Scharlemann said:
> I've got a simple registration script that has an input field of type
> password. When I retrieve what is typed in the password field via:
>
> $_REQUEST["password"];
>
> I always get the same encoded string: 8f404d5399b6eb816fe579381a0e2e6c
>
You should be getting a plain text string of whatever the user typed in. It is
up to you then to encode/encrypt that some way when storing it.
> and second, is that the correct way to get the password from a simple
> form or is there a better way of doing it?
>
$_REQUEST is fine. Although if your form is using method="POST" you might
consider using $_POST instead.
db
--
/(bb|[^b]{2})/
Trees with square roots don't have very natural logs.
Navigation:
[Reply to this message]
|