> 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.
When you submit the form, $voorraad will either be "something" or "",
depending on w
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]> wro
> If( strcmp($voorraad[1],'on') == 0 )
> // it's checked
> else
> // it's not
Alternatively, fix your HTML by using quotes and a value attribute:
Then:
if ($voorraad=='something') {
// checked
}
- Colin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
try this:
If( strcmp($voorraad[1],'on') == 0 )
// it's checked
else
// it's not
Good luck,
Ben
-Original Message-
From: Tijmen Hennink [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 06, 2001 1:34 AM
To: [EMAIL PROTECTED]
Subject: [PHP] array + checkbox
Hi All,
I've t
Hey, what is the deal with those read receipts? Do you really what one from
every person that reads your messages?
-Original Message-
From: Tijmen Hennink [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 06, 2001 2:09 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] array + checkbox
Some
t the
same output.
- Original Message -
From: "Tijmen Hennink" <[EMAIL PROTECTED]>
To: "Jason Murray" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Monday, August 06, 2001 10:40 AM
Subject: Re: [PHP] array + checkbox
> Sorry,
>
> I've c
Sorry,
I've copied some old code.
It was already
- Original Message -
From: "Jason Murray" <[EMAIL PROTECTED]>
To: "'Tijmen Hennink'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, August 06, 2001 10:37 AM
Subject: RE:
> I've the following weird problem.
> I have a form which contains an array with values of some checkboxes.
> This is the HTML-part:
>
> if checked or
>
Try maybe...?
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
8 matches
Mail list logo