Re: Re: deleting records using a checkbox

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



oh yes,
Sorry my mistake

should be:
if($val == 'Y')

Foong



"John W. Holmes" <holmes072000@charter.net> wrote in message
003501c2ee15$0c5dc130$7c02a8c0@coconut">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/
>
>



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux