Re: Re: deleting records using a checkbox
| From: | Foong | Date: | Thu, 20 Mar 2003 00:53:22 +0000 |
| Subject: | Re: Re: deleting records using a checkbox | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-26487@lists.php.net to get a copy of this message | ||
oh yes,
Sorry my mistake
should be:
if($val == 'Y')
Foong
"John W. Holmes" <holmes072000@charter.net> wrote in message
news:003501c2ee15$0c5dc130$7c02a8c0@coconut...
> > <INPUT TYPE="CHECKBOX" NAME="DELETE[<?php echo message_id
> > ?>]"
> VALUE="Y">
> >
> >
> > 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. http://www.phparch.com/
>
>