36.) What is the importance of "method" attribute in a html form?
"method" attribute determines how to send the form-data into the server.There are two methods, get and post. The default method is get.This sends the forminformation by appending it on the URL.Information sent from a form with thePOST method is invisible to others and has no limits on the amount of information to send.
37.) What is mean by an associative array?
Associative arrays are arrays that use string keys is called associative arrays.
38.) What is the importance of "action" attribute in a html form?
The action attribute determines where to send the form-data in the formsubmission.
39.) What is the use of "enctype" attribute in a html form?
The enctype attribute determines how the form-data should be encoded when submitting it to the server. We need to set enctype as "multipart/form-data"when we are using a form for uploading files
40.) How to create an array of a group of items inside an HTML form ?
We can create input fields with same name for "name" attribute with squire bracket at the end of the name of the name attribute, It passes data as an array to PHP.
For instance :
<input name="MyArray" /> <input name="MyArray" /> <input name="MyArray" /> <input name="MyArray" />