ted_chou12 Posted December 15, 2006 Share Posted December 15, 2006 I cant seem to get the value of the radio buttons in the form into the php string, here is what ive got:<input type="radio" name="threadicon" value="1"><img src="tests/1.gif"><input type="radio" name="threadicon" value="2"><img src="tests/2.gif"><input type="radio" name="threadicon" value="3"><img src="tests/3.gif">and the phpif(isset($_POST['Submit'])){$threadicon = $_POST['threadicon'];}is there any error? Link to comment https://forums.phpfreaks.com/topic/30767-solved-problem-with-form-radio-buttons-and-php/ Share on other sites More sharing options...
complex05 Posted December 15, 2006 Share Posted December 15, 2006 please post your full html and full php script. Link to comment https://forums.phpfreaks.com/topic/30767-solved-problem-with-form-radio-buttons-and-php/#findComment-141808 Share on other sites More sharing options...
ted_chou12 Posted December 15, 2006 Author Share Posted December 15, 2006 Sorry, ive tried posting the whole page up, but it doesn't seem to work, I think is too long. Can you work with this alone? My apologies... Link to comment https://forums.phpfreaks.com/topic/30767-solved-problem-with-form-radio-buttons-and-php/#findComment-141818 Share on other sites More sharing options...
JayBachatero Posted December 15, 2006 Share Posted December 15, 2006 If you have <script > tags in the script add a space after the opening bracket or before the closing one. Link to comment https://forums.phpfreaks.com/topic/30767-solved-problem-with-form-radio-buttons-and-php/#findComment-141820 Share on other sites More sharing options...
ted_chou12 Posted December 15, 2006 Author Share Posted December 15, 2006 opps, i found out why...because i didn't put the radio buttons inside the form tags...NOBODY LAUGHS :-[ Link to comment https://forums.phpfreaks.com/topic/30767-solved-problem-with-form-radio-buttons-and-php/#findComment-141825 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.