[PHP] Re: [PHP-DB] checkboxes

2005-01-21 Thread Joe Harman
Well.. i just got done doing something like what you are trying to accomplish... you will need to name your check boxes like so : name=completed[] when the form is submitted, I use something like this and shove it into a field in the database: if($_POST['completed'] NULL) { // This makes one

[PHP] Re: [PHP-DB] checkboxes

2005-01-21 Thread M. Sokolewicz
Joe Harman wrote: Well.. i just got done doing something like what you are trying to accomplish... you will need to name your check boxes like so : name=completed[] when the form is submitted, I use something like this and shove it into a field in the database: if($_POST['completed'] NULL) { //

[PHP] Re: [PHP-DB] checkboxes

2005-01-21 Thread M. Sokolewicz
M. Sokolewicz wrote: Joe Harman wrote: Well.. i just got done doing something like what you are trying to accomplish... you will need to name your check boxes like so : name=completed[] when the form is submitted, I use something like this and shove it into a field in the database:

[PHP] Re: [PHP-DB] Checkboxes to gather rows to delete

2003-02-24 Thread 1LT John W. Holmes
It is wrong to use that way of doing it John, cause this will delete ALL lines that where printed with a checkbox And also, if you are using a old version of PHP with register globals OFF, the _POST array will not be available You are mistaken. $_POST['checkboxes'] will only contain those IDs