handling of checkboxvalues
am 11.02.2006 17:48:48 von Ruprecht HelmsHi,
I want to have a function that delete some customers. The customers will
be selected by cklicking on in checkboxes. This is the line I codes the
checkboxes:
$sql = "delete from table where id in ("{$_POST['user_loeschen']}";
bastien
>From: Ruprecht Helms
>Reply-To: rhelms@my-mail.ch
>To: php-db@lists.php.net
>Subject: [PHP-DB] handling of checkboxvalues
>Date: Sat, 11 Feb 2006 17:48:48 +0100
>
>Hi,
>
>I want to have a function that delete some customers. The customers will be
>selected by cklicking on in checkboxes. This is the line I codes the
>checkboxes:
>
>
for($i=0;count($_POST['user_loeschen'])<$i;$i++){
--- put here your sql statement to delete user ---
ej... delete from users where id = '{$_POST['user_loeschen'][$i]}'
---------------------------
}
}
?>
form name='my_form' method='post' action='form.php'
ENCTYPE='multipart/form-data'
> ENCTYPE='multipart/form-data'
> ";
?>