What is the role of name="..." attribute in input?

Posted by metal-gear-solid on Stack Overflow See other posts from Stack Overflow or by metal-gear-solid
Published on 2010-05-24T06:11:46Z Indexed on 2010/05/24 6:21 UTC
Read the original article Hit count: 189

Filed under:
|
|

In this form code what is the role of name="" attribute?

name="s" and name="submit".

Is it necessary to add?

<form action="/index.php" method="get">
   <fieldset>
    <legend>Search</legend>
    <label for="s"><span>Search WaSP</span>
    <input value="" name="s" id="s"></label>
    <input type="submit" value="Go!" name="submit" >
   </fieldset>
  </form>

© Stack Overflow or respective owner

Related posts about html

Related posts about XHTML