brandon_carson Posted September 29, 2007 Share Posted September 29, 2007 I am having an issue showing all of my radio buttons in php. I want it to read all of the different options from the database and put them all as Radio Buttons.. I can do it with a list but not with the bottons. A text file of the code is here: http://brandoncarson.com/testing/php.txt Please Help! Quote Link to comment https://forums.phpfreaks.com/topic/71120-solved-radio-buttons-in-php/ Share on other sites More sharing options...
pocobueno1388 Posted September 29, 2007 Share Posted September 29, 2007 You have to have a password to get into the file. Quote Link to comment https://forums.phpfreaks.com/topic/71120-solved-radio-buttons-in-php/#findComment-357670 Share on other sites More sharing options...
teng84 Posted September 29, 2007 Share Posted September 29, 2007 show your code the link is asking a pword @@@@ ??? Quote Link to comment https://forums.phpfreaks.com/topic/71120-solved-radio-buttons-in-php/#findComment-357671 Share on other sites More sharing options...
brandon_carson Posted September 29, 2007 Author Share Posted September 29, 2007 lol sorry I fixed the link up top. I copied the FTP not the HTTP. here it is again: http://brandoncarson.com/testing/php.txt Quote Link to comment https://forums.phpfreaks.com/topic/71120-solved-radio-buttons-in-php/#findComment-357672 Share on other sites More sharing options...
brandon_carson Posted September 29, 2007 Author Share Posted September 29, 2007 It starts around line 155 in the comp_classification area Quote Link to comment https://forums.phpfreaks.com/topic/71120-solved-radio-buttons-in-php/#findComment-357675 Share on other sites More sharing options...
teng84 Posted September 29, 2007 Share Posted September 29, 2007 heres your radio button <input type=\"radio\" name=\"comp_classification\" id=\"comp_classification\"> how do you want that to be displayed? or where will youget the value of that Quote Link to comment https://forums.phpfreaks.com/topic/71120-solved-radio-buttons-in-php/#findComment-357681 Share on other sites More sharing options...
brandon_carson Posted September 29, 2007 Author Share Posted September 29, 2007 I would like it so it displays like this: http://dca.durhamc.on.ca/~carson/flash/assignment2/index.html now when i use this code it collects all of the information from the database but i have it in a list rather then radio buttons: this is the text file: www.brandoncarson.com/test/php2.txt here is how it looks online: http://dca.durhamc.on.ca/~carson/flash/assignment3/index.html how do u make it so it shows it as radio buttons? Please Help! Quote Link to comment https://forums.phpfreaks.com/topic/71120-solved-radio-buttons-in-php/#findComment-357684 Share on other sites More sharing options...
teng84 Posted September 29, 2007 Share Posted September 29, 2007 while($row = mysql_fetch_assoc($mysql_stuff)) { echo '<input name="radiobutton" type="radio" value="radiobutton" />$row[rourfield value]<br />'; }// just add it somewhere you need this line Quote Link to comment https://forums.phpfreaks.com/topic/71120-solved-radio-buttons-in-php/#findComment-357697 Share on other sites More sharing options...
brandon_carson Posted September 29, 2007 Author Share Posted September 29, 2007 did not work Quote Link to comment https://forums.phpfreaks.com/topic/71120-solved-radio-buttons-in-php/#findComment-357703 Share on other sites More sharing options...
brandon_carson Posted September 29, 2007 Author Share Posted September 29, 2007 I figured it out! thanks for the help tho Quote Link to comment https://forums.phpfreaks.com/topic/71120-solved-radio-buttons-in-php/#findComment-357710 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.