Reputation: 3534
What is the posted value of input1 if somebody submits this form?
<form action="" method="post">
<input name="input1" type="int">
<input name="input1" type="int">
<input type="submit" value="submit">
</form>
Upvotes: 0
Views: 167
Reputation: 11696
It depends on the "parser" that your plataform* use. For example, in django you get a list of both values. In PHP you only get once (the last one).
The best way is to try it!
EDIT:
Something to understand it a little bit more. Check it out:
http://www.tipfy.org/wiki/guide/request/
It's from the Tipify (a python framework)docs.
Note: Plataform might not be the best "word" to use, but it really depends in what type of programming language you use. Also the web server, some kind of middlewere, frameworks, etc.
Upvotes: 1