Issue
For efficiency purposes I am wondering if a file or text in a textarea still gets transferred to the server if you omit the name attribute or set it to null. eg
<input type="file" id="file" name="">
<textarea id="text" name="">
I notice that the data is not available at the server if you do this.
Solution
The W3C specification, if I understand it correctly, mandates that every form input element has a name
attribute specified. Otherwise that element will not be processed. Source
Answered By - Petter
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.