Possible Duplicate:
Using square brackets in hidden HTML input fields
What can I do with brackets in the name attribute of input element?
This is tutorial:
<input id="user_email" name="user[email]" size="30" tabindex="1" type="text">
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
They have no particular meaning in HTML. Some server-side frameworks, including PHP, use that sort of notation as an indication that they should build up the data in a single server-side object (an associative array in PHP’s case). So with PHP, for instance, if you had
name="user[email]"andname="user[phone]"and submitted the form, in your PHP code on the server you’d retrieve a singleuserobject from the request and it would have the keysemailandphoneon it. Or if you hadname="tags[]"on multiple inputs, PHP would build an array with all of the values calledtagson the request object.