07-02-2008, 09:04 PM
i would add id attribute
and then in
Function HD_sample_get_form_data
and then if r1=-1 ... else if r2=-1 ... and so on
<form name="f" method="post" action="">
;1) Do you like cats?<br>
;<input type="radio" name="Questioner1" id="r1" value="Yes"> Yes<br>
;<input type="radio" name="Questioner1" id="r2" value="No"> No<br>
;<input type="radio" name="Questioner1" id="r3" value="Cats are ok but Dogs are better"> Cats are ok but Dogs are better<br>
;<input type="radio" name="Questioner1" id="r4" value="None of the above"> None of the above<p>
</form>
and then in
Function HD_sample_get_form_data
MSHTML.HTMLInputElement ch
str r1 r2 r3 r4
ch=+doc.getElementById("r1")
r1=ch.getAttribute("checked" 0)
ch=+doc.getElementById("r2")
r2=ch.getAttribute("checked" 0)
;...
and then if r1=-1 ... else if r2=-1 ... and so on