Jump to content

Form Multiple Input name


dani33l_87
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
Share on other sites

  • Solution

I have absolutely no idea what you're trying to do and why.

 

On the one hand, you're asking about multiple values. Then you're suddenly talking about multiple names (whatever that means). And what's the whole purpose of this strange exercise?

Link to comment
Share on other sites

Perhaps you should read up on the usage of various HTML elements. The entire purpose of radio elements is to present to the user a specific choice of answers to a specific question, which apparently does not fit your needs at this time.

Link to comment
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.