matthew perry wrote:
$counter++;
*Bad solution 2 (doesn't work)***
$counter = 1;
while (<>)
{
if ($box . $counter == 'delete') <>
$counter++;
}
***
if(${$box . $counter} == 'delete')
However, like someone else said, if you named your che
CTED]
> Sent: Sunday, March 28, 2004 11:45 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-DB] checkboxes and loops
>
>
> OK lets see if I can figure out how to ask this:
>
> I am setting up a system for my company to filter through employee
> applications. Most of the applica
Hi,
Try:
$counter = 1;
while (<>)
{
$varname = 'box'.$counter;
if ($$varname == 'delete') <>
$counter++;
}
Hth Henrik Hornemann
-Oprindelig meddelelse-
Fra: matthew perry [mailto:[EMAIL PROTECTED]
Sendt: 29. marts 2004 07:45
Til: [EMAIL PROTECTE
Hi!
I think you should rename checkboxes to box[1], box[2] etc.
So you will get an array $_POST["box"]. I think it will be better.
Best wishes,
Mikhail U. Petrov,
PHP-programmer
Hello matthew,
Monday, March 29, 2004, 9:45:28 AM, you wrote:
mp> OK lets see if I can figure out how to ask this:
OK lets see if I can figure out how to ask this:
I am setting up a system for my company to filter through employee
applications. Most of the applications do not fit the criteria and I
want to allow my bosses a checkbox to the right of them which they can
check or uncheck to remove an applican