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

From: Date: Wed, 19 Mar 2003 12:42:43 +0000
Subject: RE: [PHP-DB] Re: deleting records using a checkbox
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-26475@lists.php.net to get a copy of this message
> <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/

« previous php.db (#26475) next »