1
I’m trying to call PHP to mark a radio button but I’m not getting it.
PHP:
if($result['sx_sexo']=="Masculino")
{
$Result_sexoM ="checked";
}
else
{
$Result_sexoF ="checked";
}
Radio button
<p>
<input name="sexo" type="radio" id="rd_masculino" value="Masculino" <?php echo $Result_sexoM ?> />
<label for="rd_masculino">Masculino</label>
<input name="sexo" type="radio" id="rd_feminino" value="Feminino" <?php echo $Result_sexoF ?> />
<label for="rd_feminino">Feminino</label>
</p>
error
Notice: Undefined variable: Result_sexom in
Thanks friend, speak of attention I altered and it worked vlw
– Reignomo