Re: [PHP-DB] Inserting checkbox data

2002-10-25 Thread Graeme McLaren
al Message - From: "Mihail Bota" <[EMAIL PROTECTED]> To: "Graeme McLaren" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, October 25, 2002 7:47 PM Subject: Re: [PHP-DB] Inserting checkbox data > Graeme, > > first, extend the for loop ov

RE: [PHP-DB] Inserting checkbox data

2002-10-25 Thread Hutchins, Richard
In addition to what Mihail had to say, I saw a couple of minor things as well. I'm not sure if they're the cause of or solution to the problem you're experiencing. First, I'm pretty sure that a value of value=\"Y\" is not valid HTML. I don't know what it does to your name/value pair when you POST

Re: [PHP-DB] Inserting checkbox data

2002-10-25 Thread Mihail Bota
Graeme, first, extend the for loop over the "if" and the query for insertion of data. As you have it now, it just inserts the last element of the array. second, I think that the for loop should be $a<$number. if you put <=, then the loop is processing the array with the last value not assigned by