F
flupke
Hi,
i have a form where i defined a checkbox in that is later processed
by a php page.
This is an excerpt:
<INPUT TYPE="checkbox" NAME="type[]" VALUE="speler">speler</INPUT><br>
<INPUT TYPE="checkbox" NAME="type[]" VALUE="trainer">trainer
(toekomstig)</INPUT><br>
<INPUT TYPE="checkbox" NAME="type[]"
VALUE="scheidsrechter">scheidsrechter (toekomstig</INPUT/><br>
<INPUT TYPE="checkbox" NAME="type[]"
VALUE="bestuurslid">bestuurslid</INPUT><br>
<INPUT TYPE="checkbox" NAME="type[]" VALUE="actieflid">actief
lid</INPUT><br>
<INPUT TYPE="checkbox" NAME="type[]" VALUE="fan">fan</INPUT><br>
How can i check to see if something was selected or not?
I tried several things for instance document.form[0].type.value
but i get "is empty or not an object".
How do i know what has been selected and what the value is?
Thanks
i have a form where i defined a checkbox in that is later processed
by a php page.
This is an excerpt:
<INPUT TYPE="checkbox" NAME="type[]" VALUE="speler">speler</INPUT><br>
<INPUT TYPE="checkbox" NAME="type[]" VALUE="trainer">trainer
(toekomstig)</INPUT><br>
<INPUT TYPE="checkbox" NAME="type[]"
VALUE="scheidsrechter">scheidsrechter (toekomstig</INPUT/><br>
<INPUT TYPE="checkbox" NAME="type[]"
VALUE="bestuurslid">bestuurslid</INPUT><br>
<INPUT TYPE="checkbox" NAME="type[]" VALUE="actieflid">actief
lid</INPUT><br>
<INPUT TYPE="checkbox" NAME="type[]" VALUE="fan">fan</INPUT><br>
How can i check to see if something was selected or not?
I tried several things for instance document.form[0].type.value
but i get "is empty or not an object".
How do i know what has been selected and what the value is?
Thanks