More forms

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
XvObiVx
-


Joined: 01 May 2004
Posts: 9

PostPosted: Tue May 11, 2004 12:21 pm    Post subject: More forms Reply with quote

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']?>">
&nbsp;<font class="login">Username: </font><input type="text" name="user" class="input">
&nbsp;&nbsp;&nbsp;<font class="login">Password: </font><input type="password" name="pass" class="input">
&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" class="submit" name="login" value="Login to WD">&nbsp;&nbsp;&nbsp;
</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 View user's profile Send private message
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Tue May 11, 2004 3:38 pm    Post subject: Reply with quote

Well in each text box, you have the "class" variable. Maybe that does something...?
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
XvObiVx
-


Joined: 01 May 2004
Posts: 9

PostPosted: Tue May 11, 2004 8:07 pm    Post subject: Reply with quote

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 View user's profile Send private message
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Wed May 12, 2004 4:30 am    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group