note 96470 deleted from faq.using by danbrown

From: Date: Mon, 01 Mar 2010 16:00:05 +0000
Subject: note 96470 deleted from faq.using by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-166492@lists.php.net to get a copy of this message
Note Submitter: DABZSE ---- thx for your answer, but that was the previous script what I made. I looking for this: index.php?id=['id']&page=['page'] in my menu. the HTML validator (in firefox plugin, tidy) and php5.3.1 shows an errors [I using WAMPSERVER 2.0d with php5.2.6 (working correctly) and php5.3.1 to view because somewhere isn't installed a new version].. here is my previous script: <?php $menu1 = $_GET['id']; switch ($menu) { case "intro" : include_once ("intro.php"); break; case "guestbook" : include_once ("guestbook.php"); break; case "flash" : include_once ("flash.php"); break; case "contact" : include_once ("contact.php"); break; default : include ("intro.php"); break; } $menu2 = $_GET['page']; switch ($menu2) { case "page01" : include_once ("page01.php"); break; case "page02" : include_once ("page02.php"); break; case "page03" : include_once ("page03.php"); break; case "page04" : include_once ("page04.php"); break; } ?> how may I change this script to work correctly in php5.3.1 without errors and to be valid? once again thx for the answer :-) have a nice day!

« previous php.notes (#166492) next »