Re: Re: deleting records using a checkbox
| From: | olinux | Date: | Thu, 20 Mar 2003 03:25:19 +0000 |
| Subject: | Re: Re: deleting records using a checkbox | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-26489@lists.php.net to get a copy of this message | ||
Since this is not valid HTML - how would you
accomplish this using valid HTML?
> <INPUT TYPE="CHECKBOX" NAME="DELETE[<?php echo
message_id ?>]"
> VALUE="Y">
i.e. Yahoo mail does checkboxes like this:
<input type="checkbox" name="Mid"
value="3398_926227_29517_1491_1405_0_273578_2841_2195311700"
onclick="Toggle(this)">
olinux
> "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/
> >
> >
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com