Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 24th, 2005, 12:46 AM
deko
Guest
 
Posts: n/a
Default HTML Forms basics

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.


  #2  
Old July 24th, 2005, 12:46 AM
Adrienne
Guest
 
Posts: n/a
Default Re: HTML Forms basics

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
  #3  
Old July 24th, 2005, 12:47 AM
me
Guest
 
Posts: n/a
Default Re: HTML Forms basics

"Adrienne" <arbpen2003@sbcglobal.net> wrote in message
news:Xns9615C38A38D79arbpenyahoocom@207.115.63.158 ...
[snip][color=blue]
> Possibly because you are mixing HTML and XHTML, and possibly because you[/color]
do[color=blue]
> 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[/color]

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


  #4  
Old July 24th, 2005, 12:47 AM
Adrienne
Guest
 
Posts: n/a
Default Re: HTML Forms basics

Gazing into my crystal ball I observed "me" <anonymous@_.com> writing in
news:1133cfa6e3ibu52@corp.supernews.com:
[color=blue]
> "Adrienne" <arbpen2003@sbcglobal.net> wrote in message
> news:Xns9615C38A38D79arbpenyahoocom@207.115.63.158 ...
> [snip][color=green]
>> 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[/color]
>
> 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
>
>
>[/color]

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
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles