Re: [PHP] Arrays in forms {?!}

2002-04-24 Thread Marcus Rasmussen
1) The example you have shown should work. Take a look at the foreach controle structure. (Link at bottom of mail.) 2) You cannot assign a value to a checkbox. It can only be set by the "checked" keyword (ie: .) 3) The value of a checked checkbox is "on". If a checkbox is not checked it will not

Re: [PHP] Arrays in forms {?!}

2002-04-23 Thread Miguel Cruz
On Wed, 24 Apr 2002, Liam MacKenzie wrote: > > while ( $element = each( $games ) ) > { > echo $element["value"]; > echo ""; > } > > > I tried this too, it gave the same results as the above... > > if (is_array($games)) { > for ($z=0;$z echo "$games[$z]"; > } > } > else { > echo "$game

[PHP] Arrays in forms {?!}

2002-04-23 Thread Liam MacKenzie
Hi all, I have a form, with about 40 checkboxes, I want to write a PHP document that processes the submission and displays the values of the checkboxes that were checked. Pretty basic stuff, I've tried a few different things, some work but display "Array" at the top of the list of values. C

Re: [PHP] arrays in forms.

2001-07-07 Thread John Meyer
> > mysql_auery($query) or die(echo mysql_error()); By the way, I know this line should be mysql_query John Meyer [EMAIL PROTECTED] Programmer If we didn't have Microsoft, we'd have to blame ourselves for all of our programs crashing -- PHP General Mailing List (

[PHP] arrays in forms.

2001-07-07 Thread John Meyer
Hi, I have a multi-select listbox set up like this: Author (you are able to select more than one.Click here to add a new author): " . $row["AUTHOR_FNAME"] . " " . $row["AUTHOR_LNAME"] . ""; echo $option; } ?> I then have a bit of code that parses through and checks which authors th