[PHP] php switch() problem
I'm using switches to make liunks like www.link.com?go=home code : switch($go) { case home:include (home.php); break; } etc, also tried require stead of include. what i get is the requested liunk loaded on top of the index.php page on the same page, check it out @ www.ribec.airann.com what can be done to stop this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] php switch() problem
hey use exit; instead of break; break breaks the switch statement and continues with the code below, exit exits the script (en doesnt execute any code below the switch statement) Kees -Original Message- From: Ann Jamison [mailto:[EMAIL PROTECTED]] Sent: Friday, November 16, 2001 1:44 PM To: [EMAIL PROTECTED] Subject: [PHP] php switch() problem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]