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="scheidsr echter">scheids rechter (toekomstig</INPUT/><br>
<INPUT TYPE="checkbox" NAME="type[]"
VALUE="bestuurs lid">bestuursli d</INPUT><br>
<INPUT TYPE="checkbox" NAME="type[]" VALUE="actiefli d">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="scheidsr echter">scheids rechter (toekomstig</INPUT/><br>
<INPUT TYPE="checkbox" NAME="type[]"
VALUE="bestuurs lid">bestuursli d</INPUT><br>
<INPUT TYPE="checkbox" NAME="type[]" VALUE="actiefli d">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
Comment