|
Posted by deko on March 11, 2005, 3:22 am
Please log in for more thread options
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.
|
|
Posted by Adrienne on March 11, 2005, 4:13 am
Please log in for more thread options
> 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.
>
>
>
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
|
|
Posted by me on March 11, 2005, 9:57 am
Please log in for more thread options
[snip]
> 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
OT: The home page of your intraproducts site has problems in IE6, if I set
the font size bigger than "smaller" in my browser some of the navigation
cells on the left of the page break and when the size is set to "medium" or
above the email text at the top right of the page becomes obscured. I hope
you don't mind that I mentioned this.
Signed,
me
|
|
Posted by Adrienne on March 11, 2005, 5:23 pm
Please log in for more thread options
> [snip]
>> 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
>
> OT: The home page of your intraproducts site has problems in IE6, if I
> set the font size bigger than "smaller" in my browser some of the
> navigation cells on the left of the page break and when the size is set
> to "medium" or above the email text at the top right of the page
> becomes obscured. I hope you don't mind that I mentioned this.
> Signed,
> me
>
>
>
Don't mind at all. That site is due for an overhaul anyway. Thanks for
the heads up.
--
Adrienne Boswell
http://www.cavalcade-of-coding.info Please respond to the group so others can share
|
| Similar Threads | Posted | | Forms - howto use return for submitting in Forms? | April 6, 2005, 4:08 pm |
| Lang attribute basics | November 22, 2005, 1:57 pm |
| html forms question | February 1, 2006, 6:08 pm |
| DISABLED on HTML forms problem | January 13, 2008, 12:39 pm |
| HTML Forms, file input. How extensible is it? | October 19, 2005, 2:12 am |
| Help with forms. | January 29, 2006, 10:37 pm |
| FOrms | July 10, 2008, 10:05 am |
| Nested forms | August 20, 2004, 9:53 am |
| Forms and encoding | August 21, 2004, 7:35 pm |
| autofill web forms | January 24, 2005, 12:53 pm |
|