Gazing into my crystal ball I observed "deko" <deko@hotmail.com> writing
in news:lh7Yd.16304$Pz7.7419@newssvr13.news.prodigy.c om:
[color=blue]
> I'm trying to write a login script for my web site. I have a form the
> looks like this:
>
> <h4>User Login</h4>
> <form action="" method="post" name="login" style="text-align:right;
> padding-top:20px;" Email address: <input name="email_address"
> type="text" size="30" maxlength="100"/><br /> Password: <input
> name="password" type="password" size="30" maxlength="10"><br />
> <input name="Login" type="submit" value="Login"> </form>
>
> Then I want to return whatever the user entered in the form to
> variables like this:
>
> $username = $HTTP_POST_VARS['username'];
> $password = $HTTP_POST_VARS['password'];
>
> Why don't I get a value for $password?
>
> Is there some other variable that 'password' is stored in? Why? Does
> HTTP do this so it's more secure? How?
>
> Thanks in advance.
>
>
>[/color]
Possibly because you are mixing HTML and XHTML, and possibly because you do
not have an end tag for the form element. Take a look at
http://www.intraproducts.com/beta/requiredform.asp for some tips about
presentation of forms (you can convert to PHP easily).
--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share