How can i use radi buttons?
here is a snitt of my files:
the form file:
<input type="radio" name="GTA2FileType" value="files">GTA2 File(s)<br>
<input type="radio" name="GTA2FileType" value="car">GTA2 Car(s)<br>
the action file:
if ($car.checked){
$fp = fopen("g.txt", "w"
fwrite ($fp,"A: $name"
fwrite ($fp,"C: $Comments"
fclose ($fp);
}
but it does make the file "g.txt" when the "car" is checked and when "files" are checked. What have i done wrong??
here is a snitt of my files:
the form file:
<input type="radio" name="GTA2FileType" value="files">GTA2 File(s)<br>
<input type="radio" name="GTA2FileType" value="car">GTA2 Car(s)<br>
the action file:
if ($car.checked){
$fp = fopen("g.txt", "w"
fwrite ($fp,"A: $name"
fwrite ($fp,"C: $Comments"
fclose ($fp);
}
but it does make the file "g.txt" when the "car" is checked and when "files" are checked. What have i done wrong??