KANJE Posted May 31, 2012 Share Posted May 31, 2012 hello guys help me please to fix this issue i have tried a lot i want the checked button is the result from database <tr> <td><div align='left' class='style6'>gender</div></td> <td><label> <select name ='gender'>"; echo "<input type="\radio\" value = "\female\""; if($result1 == F) echo " checked=\"checked\""; echo ">female"; echo "<input type=\"radio\" value = \"male\""; if($result1 == M) echo " checked=\"checked\""; echo ">male; </label></td> </tr> the result come Parse error: syntax error, unexpected T_NS_SEPARATOR, expecting ',' or ';' in C:\wamp\www\sautems\updateStudentInfo.php on line 277 Link to comment https://forums.phpfreaks.com/topic/263413-radio-buton/ Share on other sites More sharing options...
blink359 Posted May 31, 2012 Share Posted May 31, 2012 echo ">male; is missing close quotation echo ">male"; Link to comment https://forums.phpfreaks.com/topic/263413-radio-buton/#findComment-1350022 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.