Re: [PHP-DB] checkboxes and loops

2004-03-29 Thread John W. Holmes
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

RE: [PHP-DB] checkboxes and loops

2004-03-29 Thread Duane Lakoduk
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

SV: [PHP-DB] checkboxes and loops

2004-03-29 Thread Henrik Hornemann
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

Re: [PHP-DB] checkboxes and loops

2004-03-28 Thread Mikhail U. Petrov
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:

[PHP-DB] checkboxes and loops

2004-03-28 Thread matthew perry
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