Jump to content

Form Multiple Input name


Go to solution Solved by Jacques1,

Recommended Posts

I have a form:

 

<input id="house" name="element_1" class="element radio" type="radio" value="Daniel" />

<input id="car" name="element_2" class="element radio" type="radio" value="Joe" />

 

 

How can I give to "element_1" multiple value instead of only one?

 

Welcome <?php echo $_GET["element_1"]; ?><br>   ====  Welcome Daniel

 

 

element_1 = element_12 = element_13

 

WHERE

 

 

element_1 = Daniel

element_12 = car

element_13 = key

 

 

Welcome <?php echo $_GET["element_12"]; ?><br>   ====  Welcome car

 

 

I need to create a structure for a 10 different values.  I heard that will be easy to use array or object, I don t really now how to structure it.

 

 

 

 

 

 

 

 

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/289353-form-multiple-input-name/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.