Jump to content

radio buton


KANJE

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.