bcraig Posted December 21, 2007 Share Posted December 21, 2007 How do you POST data depending on the setting of check boxes and radio buttons? I want to post only one of the inputs where radio checked... <radio><input text>your location(checked by default) <radio><input text>or specify And post any of these if checked... [ ]<input>email [ ]<input>phone [ ]<input>mobile Im using: PHP 5.2.5 Link to comment https://forums.phpfreaks.com/topic/82632-check-box-and-radio-button/ Share on other sites More sharing options...
roshanbh Posted December 21, 2007 Share Posted December 21, 2007 try naming corresponding checkbox and textbox like chk1 and text1 , chk2 and text2 etc. and while posted check it like this if($_POST['chk1']) \\assign values here Link to comment https://forums.phpfreaks.com/topic/82632-check-box-and-radio-button/#findComment-420289 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.