Hi!
I have 12 radio buttons. And i want to extract only the selected button.
i use this code :
<tr>
<td width="44%"><input type="radio" name="choix" value=1>Diapositives</td>
<td width="56%"><input type="radio" name="choix" value=7><span lang="en-us">Velox</span></td>
</tr>
<tr>
I have to extract the selected button with Javascript.
My js function looks like this :
function verifier_choix()
{
var choice = document.form_shipping.choix.value;
switch(choice)
{
case 1:
document.form_shipping.hid.value="diapo";
document.form_shipping.submit();
break;
case 2:
document.form_shipping.hid.value="illus";
document.form_shipping.submit();
break;
}
the hid object is a hidden type in html..
and i have :
<?
if ($hid =="diapo")
{
echo("<tr><td>Diapositives ".$qte. "</td>");
}
elseif($hid=="illus")
{
echo("<tr><td>Illustrations: ".$qte. $hid ."</td>");
}
?>
Im a newbie... so be clear if you can help me please!