ainoy31 Posted May 30, 2007 Share Posted May 30, 2007 I have a radio button: <input type = "radio" name = "id" value = ""> The info that needs to be put into value field is $id. I know that I can not put $id there. If I put 7 there, it works with no problem. I am getting the $id value from a database. Any ideas on how to handle this. Much appreciation. Thx. AM Link to comment https://forums.phpfreaks.com/topic/53621-radio-button-in-php/ Share on other sites More sharing options...
snowdog Posted May 30, 2007 Share Posted May 30, 2007 You need to get the $id from the database or wherever you are getting it from and change your input to this. You will also have to make the page a .php instead of a .thml for the php to execute. <input type = "radio" name = "id" value = "<?echo $id;?>"> Snowdog Link to comment https://forums.phpfreaks.com/topic/53621-radio-button-in-php/#findComment-265027 Share on other sites More sharing options...
ainoy31 Posted May 30, 2007 Author Share Posted May 30, 2007 That works. I am very grateful..... Link to comment https://forums.phpfreaks.com/topic/53621-radio-button-in-php/#findComment-265031 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.