469,270 Members | 1,117 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,270 developers. It's quick & easy.

input type="submit" differs from input type="Login"

so this has been blowing my mind for a few hours now and i have no idea what's going on.

Expand|Select|Wrap|Line Numbers
  1. <form action="userLogin.php" method="get">
  2.         Username: <input type="text" name="userName" /><br/>
  3.         Password: <input type="password" name="pwd" /><br/>
  4.         <input type="submit" />
  5.     </form>
  6.  
will produce exactly what i want, 2 text fields and a submit button labeled "Submit Query", but when i change the word "submit" to "login"


Expand|Select|Wrap|Line Numbers
  1. <form action="userLogin.php" method="get">
  2.         Username: <input type="text" name="userName" /><br/>
  3.         Password: <input type="password" name="pwd" /><br/>
  4.         <input type="Login" />
  5.     </form>
  6.  

i get 3 text fields and the "Submit Query" button has disappeared. can someone PLEASE explain what's going on?

thanks :)
Jul 30 '10 #1
4 7247
improvcornartist
303 Expert 100+
Unless I misunderstand you, Login isn't a valid input type with html. If you just want the button to say login, use
Expand|Select|Wrap|Line Numbers
  1. <input type="submit" value="Login"/>
Jul 30 '10 #2
yup, worked like a charm. thx!
Jul 30 '10 #3
Markus
6,050 Expert 4TB
May I ask what has this to do with PHP?
Jul 30 '10 #4
Atli
5,058 Expert 4TB
@Markus
Nothing, apparently. Moved to HTML/CSS.
Jul 31 '10 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by lsarg | last post: by
2 posts views Thread by mattgarvin | last post: by
8 posts views Thread by webgenius | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.