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

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 (