Lucky2710 Posted July 31, 2010 Share Posted July 31, 2010 Ive got a form and its got groups of 2 radio buttons. when its submitted i need somehow to attach certain information to each radio group. The form is taking user info and putting it into mysql, so the hidden info has to go somehow. Like i need the users choice to be submitted and with that choice i need the game id for that choice. I can figure out the mysql on my own i just cant seem to make hidden info go through the way i want it too. Can any one help. below is part of the code. <form action="testprocess.php" method="post"> <p> <label> <input name="F" type="hidden" value="Game 1" id="RadioGroup1_0"></label> <label> <input type="radio" name="F" value="Florida" id="RadioGroup1_1"> Florida</label> <label> <input type="radio" name="F" value="Florida State" id="RadioGroup1_2"> Florida St</label> </p> <p> <label> <input name="SC" type="hidden" value="Game 2" id="RadioGroup2_0"></label> <label> <input type="radio" name="SC" value="South Carolina" id="RadioGroup2_1"> South Carolina</label> <label> <input type="radio" name="SC" value="Clemson" id="RadioGroup2_3"> Clemson</label> <br> </p> <input name="" type="submit" value="Submit"></form> <?php $F = $_POST[F]; $SC = $_POST[sC]; ?> <?php echo $F; echo'<br />'; echo $SC; ?> The code ive posted is just a basic un-cluttered version of my actual script. (Note it has NO my sql) Any help is greatly appreciated! Quote Link to comment https://forums.phpfreaks.com/topic/209405-hidden-stuff/ 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.