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 Quote 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 Quote 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..... Quote Link to comment https://forums.phpfreaks.com/topic/53621-radio-button-in-php/#findComment-265031 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.