form check

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,079
Messages
2,570,574
Members
47,206
Latest member
Zenden

Latest Threads

Top