dani33l_87 Posted July 1, 2014 Share Posted July 1, 2014 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. Quote Link to comment https://forums.phpfreaks.com/topic/289353-form-multiple-input-name/ Share on other sites More sharing options...
Solution Jacques1 Posted July 1, 2014 Solution Share Posted July 1, 2014 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? Quote Link to comment https://forums.phpfreaks.com/topic/289353-form-multiple-input-name/#findComment-1483460 Share on other sites More sharing options...
ginerjm Posted July 1, 2014 Share Posted July 1, 2014 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. Quote Link to comment https://forums.phpfreaks.com/topic/289353-form-multiple-input-name/#findComment-1483461 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.