Salve, ho un problema con questo script:
quando creo il radio botton, value non è uguale al valore dell'id.Codice PHP:
<?php
//table s
$sqlquery ="SELECT id,s FROM s";
$result = mysql_query($sqlquery);
if (!$sqlquery) {
exit ('<p> Errore mentre recuperavo i dati' . mysql_error() . '</p>');
}
while ($row = mysql_fetch_array($result))
{
echo '<td align="left"> <input type="radio" id="rb1" name="rb4" value="$row["id"]" />';
echo $row["s"];
echo'</td>';
} echo "<span></span></label>
</tr><br> ";
?>
Infatti il sorgente della pagina è questo:
<tdalign="left"> <inputtype="radio"id="rb1"name="rb4"value="$row["id"]" />
Invece dovrebbe essere il seguente:
<tdalign="left"> <inputtype="radio"id="rb1"name="rb4"value= 1 />
Cosa ho sbagliato nella sintassi? Grazie a tutti.