Hi all
I have a table that is populated from a database which gets the IDs of the
records from a php array.Every row in the table has a checkbox next to the
actual record, what I want to do is to allow the user to select the records
they want to remove by clicking the checkbox(es) and then click
Simple:
foreach($_POST['del_checkboxes'] as $id) {
$sql=delete from table where id='$id';
}
Checkboxes are created using
input name=del_checkboxes value=?= $id ?
Angelo Zanetti wrote:
Hi all
I have a table that is populated from a database which gets the IDs of the
records from a
[mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 1:36 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] php and checkboxes.
Simple:
foreach($_POST['del_checkboxes'] as $id) {
$sql=delete from table where id='$id';
}
Checkboxes are created using
input name
On Mon, Sep 29, 2003 at 01:43:08PM +0200, Angelo Zanetti wrote:
:
: Marek Kilimajer suggested:
:
: Angelo Zanetti wrote:
:
: I have a table that is populated from a database which gets the
: IDs of the records from a php array.Every row in the table has a
: checkbox next to the actual
From: Angelo Zanetti [EMAIL PROTECTED]
I dont actually want to delete the record from the database, perhaps I
wasnt
very clear in my explanation, but I just need to remove that entry from
the
table.
kinda like when deleting mail from your web email account like hotmail.
Same idea...
input
if this can be done on
that same page or on the page to which the link calls. IE: if php can
determine which checkboxes have been selected. All the checkboxes are all
part of an array.
this is the way it should work:
1. the user selects the items they want
2. then clicks a link to another page
3. this page
selected in a session variable. Firstly I am not sure if this can be done on
that same page or on the page to which the link calls. IE: if php can
determine which checkboxes have been selected. All the checkboxes are all
part of an array.
this is the way it should work:
1. the user selects
7 matches
Mail list logo