Re: [PHP] array + checkbox

2001-08-08 Thread Colin Viebrock
> 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

Re: [PHP] array + checkbox

2001-08-08 Thread Bjorn Van Simaeys
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

Re: [PHP] array + checkbox

2001-08-08 Thread Colin Viebrock
> 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

RE: [PHP] array + checkbox

2001-08-07 Thread Ben Bleything
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

RE: [PHP] array + checkbox

2001-08-06 Thread David Price
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

Re: [PHP] array + checkbox

2001-08-06 Thread Tijmen Hennink
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

Re: [PHP] array + checkbox

2001-08-06 Thread Tijmen Hennink
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:

RE: [PHP] array + checkbox

2001-08-06 Thread Jason Murray
> 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,