phppaper Posted December 13, 2010 Share Posted December 13, 2010 Dear all, is there any way to Use textfield's value as radio button's value, for example i have a few radio button and the last one's topic is: o Others Please state: "textfield" So How can I make the arrangment so that when user choose that option, the text from the textfield will be sent by the form?? Thanks!! Link to comment https://forums.phpfreaks.com/topic/221487-use-textfields-value-as-radio-buttons-value/ Share on other sites More sharing options...
haku Posted December 13, 2010 Share Posted December 13, 2010 You can't. But what you do is check if the selected radio button is the one for the textfield, and if it is, you use the value in the textfield. Otherwise you ignore the value in the textfield. Link to comment https://forums.phpfreaks.com/topic/221487-use-textfields-value-as-radio-buttons-value/#findComment-1146545 Share on other sites More sharing options...
phppaper Posted December 13, 2010 Author Share Posted December 13, 2010 That sounds a good idea, so whats the code when php file received the value? If (isset($radio)) ?? Link to comment https://forums.phpfreaks.com/topic/221487-use-textfields-value-as-radio-buttons-value/#findComment-1146546 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.