• Please make sure to complete your profile by filling in any details pertaining to your company, name, photo, socials and contact information for any updates.
  • Need a hand with one of our platforms? post it under the support forum!
  • Reach out to us by emailing devsupport@redtorrentmedia.app if you don't see a response in 24/48 hours. - Please forward your thread!

Creating a PHP arrays in a HTML form

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.
 

admin

Administrator
Staff 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.[/QUOTE]


sweet! :) clearly you know your stuff!
 
Top