Change introduction to a variable with $ in front of it or put it in quotes "introduction".
> What Can I do to stop the foreach function from working if > $menu is not > set?? > > <? > if ($menu==(introduction)) {$sub = array( > 'overview.php' => 'Overview', > 'moreinfo.php' => 'More Info' > ); > } **************************************************************************** This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php