473,503 Members | 2,082 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.
Jul 23 '05 #1
3 1335
Gazing into my crystal ball I observed "deko" <de**@hotmail.com> writing
in news:lh******************@newssvr13.news.prodigy.c om:
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
Jul 23 '05 #2
me
"Adrienne" <ar********@sbcglobal.net> wrote in message
news:Xn****************************@207.115.63.158 ...
[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
Jul 23 '05 #3
Gazing into my crystal ball I observed "me" <anonymous@_.com> writing in
news:11*************@corp.supernews.com:
"Adrienne" <ar********@sbcglobal.net> wrote in message
news:Xn****************************@207.115.63.158 ...
[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
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2569
by: Ian N | last post by:
Hi, I'm creating a site that posts orders to an email address when they're submitted, these orders need to be in the form of official invoices so i'm using HTML to format them. I already have...
9
6063
by: Peter Kaptein | last post by:
In some applications you see a HTML page in the Web-browser call a DLL instead of a .asp page. The result is HTML presented in the browser. I have seen this working for stand-alone apps as well...
8
2477
by: yawnmoth | last post by:
i've seen a few html forms, whose textarea's have text in them, and which reset when you click in that textarea... how can i do this? also, say my form has two different variables (namse, or...
72
5301
by: Mel | last post by:
Are we going backwards ? (please excuse my spelling...) In my opinion an absolute YES ! Take a look at what we are doing ! we create TAGS, things like <H1> etc. and although there are tools...
5
4182
by: fraser | last post by:
Hi, I have a photo gallery with cat photos here http://mouserspage.cjb.net From the beginning, I have been making each page of thumbnails, with a separate page for each photo, entirely in...
22
3297
by: Luke | last post by:
Elements with name attribute: form, input, textarea, a, frame, iframe, button, select, map, meta, applet, object, param, img (if you know more reply...) Methods of addresing html elements:...
0
4198
by: Anonieko Ramos | last post by:
ASP.NET Forms Authentication Best Practices Dr. Dobb's Journal February 2004 Protecting user information is critical By Douglas Reilly Douglas is the author of Designing Microsoft ASP.NET...
18
1914
by: jello_world | last post by:
I am a VB6 programmer and I know how to build console apps.. I just dont understand how to get my mind around WinForms; they just seem a lot more complex than VB6. Thanks -Charlie
2
3583
by: leorou | last post by:
Hello. I would like to know the basics of populating a html form from fields in a db. I have data in a db that i would like to modify through a html form. How can i load the db data into the html...
0
7091
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7282
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7342
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6998
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7464
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5586
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5018
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4680
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3171
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.