View previous topic :: View next topic |
Author |
Message |
XvObiVx -
Joined: 01 May 2004 Posts: 9
|
Posted: Tue May 11, 2004 12:21 pm Post subject: More forms |
|
|
Ok, so I'm using forms on my webpage Whenever I use the following code:
Code: |
<form method=POST action="<?php echo $_SERVER['PHP_SELF']?>">
<font class="login">Username: </font><input type="text" name="user" class="input">
<font class="login">Password: </font><input type="password" name="pass" class="input">
<input type="submit" class="submit" name="login" value="Login to WD">
</form>
|
It returns a URL http://localhost/POST?user=XvObiVx&pass=blahblahblah&login=Login+to+WD.
I've used forms successfully before, and I can't seem to find the difference in this one and this next one:
Code: |
<form method=POST action="<?php echo $_SERVER['PHP_SELF']?>">
UserName: <input type="text" name="user">
Password: <input type="text" name="pass">
<input type="submit" name="submit" value="Submit">
</form>
|
Any help is much appreciated. |
|
Back to top |
|
 |
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Tue May 11, 2004 3:38 pm Post subject: |
|
|
Well in each text box, you have the "class" variable. Maybe that does something...? _________________ Bienvenidos! |
|
Back to top |
 |
 |
XvObiVx -
Joined: 01 May 2004 Posts: 9
|
Posted: Tue May 11, 2004 8:07 pm Post subject: |
|
|
Yea, that seems to be the problem, ty.
However, I don't know why =\. The "class=" refers to CSS, and I don't think I have anything written wrong there You guys can take a look anyway:
Code: |
font.login {font-family: Times New Roman; font-size: 8pt; Color: #999999;}
input.input {background-color: #333333; border: 1px solid #666666; font-size: 8pt; color: #000000;}
input.submit {background-color: #333333; border: 1px solid #666666; font-weight: bold; font-size: 8pt; color: #999999;}
|
Thanks for all replies. |
|
Back to top |
|
 |
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Wed May 12, 2004 4:30 am Post subject: |
|
|
I can't quite say if that is wrong or not; although it looks right. Here's a suggestion for formatting forms: use the "style" tag.
Check my example at http://www.cfxnetworks.com/contact.html (just view the source). _________________ Bienvenidos! |
|
Back to top |
 |
 |
|