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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rotaryfreak
    New Member
    • Oct 2008
    • 74

    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.

    Code:
    <form action="userLogin.php" method="get">
            Username: <input type="text" name="userName" /><br/>
            Password: <input type="password" name="pwd" /><br/>
            <input type="submit" />
        </form>
    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"


    Code:
    <form action="userLogin.php" method="get">
            Username: <input type="text" name="userName" /><br/>
            Password: <input type="password" name="pwd" /><br/>
            <input type="Login" />
        </form>

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

    thanks :)
  • improvcornartist
    Recognized Expert Contributor
    • May 2007
    • 303

    #2
    Unless I misunderstand you, Login isn't a valid input type with html. If you just want the button to say login, use
    Code:
    <input type="submit" value="Login"/>

    Comment

    • rotaryfreak
      New Member
      • Oct 2008
      • 74

      #3
      yup, worked like a charm. thx!

      Comment

      • Markus
        Recognized Expert Expert
        • Jun 2007
        • 6092

        #4
        May I ask what has this to do with PHP?

        Comment

        • Atli
          Recognized Expert Expert
          • Nov 2006
          • 5062

          #5
          Originally posted by Markus
          May I ask what has this to do with PHP?
          Nothing, apparently. Moved to HTML/CSS.

          Comment

          Working...