rakib1279001
New member
To get your FORM result sent as an exhibit to your PHP script you name the INPUT, SELECT, TEXTAREA components like this:
<input name=”MyArray[]“>
<input name=”MyArray[]”>
<input name=”MyArray[]”>
<input name=”MyArray[]”>
In the event that you don't indicate the keys, the array gets dispatched in the request the components show up in the structure. Above illustration will contain keys 0, 1, 2 and 3. Notice the square sections after the variable name, that is the thing that makes it aa array. You can amass the components into diverse clusters by relegating the same name to distinctive components:
<input name=”MyArray[]“>
<input name=”MyArray[]”>
<input name=”MyOtherArray[]“>
<input name=”MyOtherArray[]”>
This delivers two arrays, MyArray and MyOtherArray, that gets sent to the PHP script. It's additionally conceivable to assign particular keys to your arrays:
<input name=”AnotherArray[]”>
<input name=”AnotherArray[]”>
<input name=”AnotherArray“>
<input name=”AnotherArray[phone]”>
The AnotherArray array will now contain the keys 0, 1, email and phone.
<input name=”MyArray[]“>
<input name=”MyArray[]”>
<input name=”MyArray[]”>
<input name=”MyArray[]”>
In the event that you don't indicate the keys, the array gets dispatched in the request the components show up in the structure. Above illustration will contain keys 0, 1, 2 and 3. Notice the square sections after the variable name, that is the thing that makes it aa array. You can amass the components into diverse clusters by relegating the same name to distinctive components:
<input name=”MyArray[]“>
<input name=”MyArray[]”>
<input name=”MyOtherArray[]“>
<input name=”MyOtherArray[]”>
This delivers two arrays, MyArray and MyOtherArray, that gets sent to the PHP script. It's additionally conceivable to assign particular keys to your arrays:
<input name=”AnotherArray[]”>
<input name=”AnotherArray[]”>
<input name=”AnotherArray“>
<input name=”AnotherArray[phone]”>
The AnotherArray array will now contain the keys 0, 1, email and phone.