> You will need some javascript to handle the checkbox'
> onchange event because when the user clicks the
> checkbox off and back on, the value will be 'on' - and
> your if-condition will not work!

Uh, no.

    <INPUT TYPE="checkbox" name="voorraad" value="something" checked>

When you submit the form, $voorraad will either be "something" or "",
depending on whether it was checked or not.

    http://devel.easydns.com/~cmv/checkbox.php
    http://devel.easydns.com/~cmv/checkbox.phps  (source)

onChange stuff is only if you want to do Javascript processing client-side.

- Colin



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to