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 lib.$subjectx./b.br /\n; print ul\n; asort( $strandy ); // sorts the strands foreach( $strandy as $str ) { print li;

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

2003-02-02 Thread Peter Gumbrell
. Holmes [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 02, 2003 1:28 PM To: 'Peter Gumbrell'; [EMAIL PROTECTED] Subject: RE: [PHP] selecting from an array based on form content The following code loops through a multidimensional array, printing the subject heading and then the strand

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

2003-02-02 Thread John W. Holmes
: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 home/student/peter/public_html/week4.php on line 153

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

2003-02-02 Thread Peter Gumbrell
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'; [EMAIL PROTECTED] Subject: RE: [PHP] selecting from an array based on form content Where do you define