Hey Colin,


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!


Greetz,
Bjorn Van Simaeys
www.bvsenterprises.com


--- Colin Viebrock <[EMAIL PROTECTED]> wrote:
> > If( strcmp($voorraad[1],'on') == 0 )
> > // it's checked
> > else
> > // it's not
> 
> Alternatively, fix your HTML by using quotes and a
> value attribute:
> 
> <INPUT TYPE="checkbox" name="voorraad"
> value="something" checked>
> 
> Then:
> 
> if ($voorraad=='something') {
>     // checked
> }
> 
> 
> - 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]
> 


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

-- 
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