mrjameer Posted September 18, 2006 Share Posted September 18, 2006 hi,i want to know how to validate multiple radiobuttons.for example 1.hobbies--radiobutton1[play],radobutton2[tv],radiobutton3[music] finally one submit button.when i click the radio button and press submit button,it should display the selected radio button value in a textbox1.2.class--radiobutton1[business],radobutton2[executive],radiobutton3[normal] finally one submit button.when i click the radio button and press submit button,it should display the selected radio button value.in a textbox2means total 6 radiobuttons and 2 submit buttons how to handle it.i know with 3 radiobuttons and 1 submit buttonhere is code.just correct the mistakes<form name="fname" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>"><b>hosting</b>100<input type="radio" name="check[]" value="100">200<input type="radio" name="check[]" value="200">300<input type="radio" name="check[]" value="300">value<input type="text" name="text1" value="<?php echo $check['0'];?>"><input type="submit" value="submit"><br><br><br><b>digichat</b>100<input type="radio" name="check1[]" value="100">200<input type="radio" name="check1[]" value="200">300<input type="radio" name="check1[]" value="300">value<input type="text" name="text1" value="<?php echo $check1['0'];?>"><input type="submit" value="retrieve" onclick="this.form.action='<?php echo $_SERVER['PHP_SELF'];?>'">i need your helpmrjameer Link to comment https://forums.phpfreaks.com/topic/21162-radio-buttons-with-php/ Share on other sites More sharing options...
Hepp Posted September 18, 2006 Share Posted September 18, 2006 [url=http://www.propergrammar.com/]This Will Help You With All Your Needs.[/url] Link to comment https://forums.phpfreaks.com/topic/21162-radio-buttons-with-php/#findComment-94051 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.