note 96470 added to faq.using
| From: | DABZSE at osu1 dot php dot net | Date: | Mon, 01 Mar 2010 07:04:42 +0000 |
| Subject: | note 96470 added to faq.using | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-166458@lists.php.net to get a copy of this message | ||
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!
----
Server IP: 69.147.83.197
Probable Submitter: 93.92.248.11 (proxied: 93.92.253.102)
----
Manual Page -- http://www.php.net/manual/en/faq.using.php
Edit -- https://master.php.net/note/edit/96470
Del: integrated -- https://master.php.net/note/delete/96470/integrated
Del: useless -- https://master.php.net/note/delete/96470/useless
Del: bad code -- https://master.php.net/note/delete/96470/bad+code
Del: spam -- https://master.php.net/note/delete/96470/spam
Del: non-english -- https://master.php.net/note/delete/96470/non-english
Del: in docs -- https://master.php.net/note/delete/96470/in+docs
Del: other reasons-- https://master.php.net/note/delete/96470
Reject -- https://master.php.net/note/reject/96470
Search -- https://master.php.net/manage/user-notes.php