RE: [PHP] selecting from an array based on form content

2003-02-02 Thread Peter Gumbrell
x27;, 'Geometry and Spatial Sense','Patterning and Algebra','Data Management and Probability')); Peter Gumbrell [EMAIL PROTECTED] -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 02, 2003 2:50 PM To: 'Peter Gumbrell

RE: [PHP] selecting from an array based on form content

2003-02-02 Thread John W. Holmes
y, February 02, 2003 2:08 PM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] selecting from an array based on form content > > Thanks for the suggestion, John. When I implement your code, however, I > get > an error saying > Warning: Invalid argument supplied for foreach() in > ho

RE: [PHP] selecting from an array based on form content

2003-02-02 Thread Peter Gumbrell
and[]",$strandx,$str,0,0); print "\n"; } Any help would again be appreciated. Peter -Original Message----- From: John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 02, 2003 1:28 PM To: 'Peter Gumbrell'; [EMAIL PROTECTED] Subject: RE: [PHP] selecting from an arra

RE: [PHP] selecting from an array based on form content

2003-02-02 Thread John W. Holmes
> The following code loops through a multidimensional array, printing the > subject heading and then the strand: > > foreach( $strandx as $subjectx=>$strandy ) > { > print " ".$subjectx.".\n"; > > > print " \n"; > asort( $strandy ); // sorts the strands > foreach( $strandy as $str ) > > { print