RE: [PHP-DB] Re: deleting records using a checkbox

2003-03-21 Thread Ford, Mike [LSS]
> -Original Message- > From: Paul Burney [mailto:[EMAIL PROTECTED] > Sent: 20 March 2003 15:22 > > on 3/20/03 1:45 AM, olinux at [EMAIL PROTECTED] appended the > following bits to > my mbox: > > > [ and ] are illegal characters. #javascript > > I'm coming into this a bit late, so I'm no

Re: [PHP-DB] Re: deleting records using a checkbox

2003-03-20 Thread Paul Burney
on 3/20/03 1:45 AM, olinux at [EMAIL PROTECTED] appended the following bits to my mbox: > [ and ] are illegal characters. #javascript I'm coming into this a bit late, so I'm not sure exactly what you wish to do. You can use JavaScript to refer to checkbox items in the format: document.forms[for

RE: [PHP-DB] Re: deleting records using a checkbox

2003-03-19 Thread olinux
[ and ] are illegal characters. #javascript Here are a couple links. Looks like the solution is in parsing the form headers. try some google searches for 'checkbox array javascript php' Here's an interesting one: http://jscript.dk/faq/php.asp usually the only solution offered is how to work wi

RE: [PHP-DB] Re: deleting records using a checkbox

2003-03-19 Thread John W. Holmes
> Since this is not valid HTML - how would you > accomplish this using valid HTML? > > > > VALUE="Y"> How is that not valid HTML? You could use: ---John Holmes... -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Re: deleting records using a checkbox

2003-03-19 Thread olinux
Since this is not valid HTML - how would you accomplish this using valid HTML? > VALUE="Y"> i.e. Yahoo mail does checkboxes like this: olinux > "John W. Holmes" <[EMAIL PROTECTED]> wrote in > message > news:[EMAIL PROTECTED] > > > > VALUE="Y"> > > > > > > > > > you will get an array named

Re: [PHP-DB] Re: deleting records using a checkbox

2003-03-19 Thread Foong
oh yes, Sorry my mistake should be: if($val == 'Y') Foong "John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > VALUE="Y"> > > > > > > you will get an array named DELETE. > > > > check for every element in array DELETE > > > > foreach($_POST['DELETE'] as $message_id

RE: [PHP-DB] Re: deleting records using a checkbox

2003-03-19 Thread John W. Holmes
> > > > you will get an array named DELETE. > > check for every element in array DELETE > > foreach($_POST['DELETE'] as $message_id => $val) { > if($val ==1) { You mean if($val == 'Y') ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. h