Rab0099 Posted July 30, 2010 Share Posted July 30, 2010 I am using php to display information from a MySQL database. It starts with three radio buttons and upon selecting one it will display some information for all items in that category. I have all this working but I need to add check boxes for each item and when submitted it will display all information for those items. Below is the bit where I need to insert check box and I'm also attaching my php (leaving out html form and database as it shouldn't be required to help). I must do this as soon as possible, please help. Thanks.. while ($row = mysql_fetch_assoc ($result_set)) { $ID = $row['id']; $auth = $row['entertainerauthor']; $title = $row['title']; $media = $row['media']; $feature = $row['feature']; printf ("\nID: %s",$ID); printf ("\nEntertainer/Author: %s",$auth); printf ("\nTitle: %s",$title); printf ("\nMedia: %s",$media); printf ("\nFeature: %s",$feature); print "\n"; } [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
iStriide Posted July 30, 2010 Share Posted July 30, 2010 <html> <body> <form action="whatever.phphphph" method="post"> <input type="checkbox" name="check" value="whatever">Whatever</input> <button>Submit</button> </form> <?php $checkbox = $_POST['check']; echo $checkbox; ?> </body> </html> Quote Link to comment 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.