Re: Re: deleting records using a checkbox

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

 



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
> 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
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.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