[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]
[PHP] switch() for links like ?id=index problem
my code looks something like this: switch($id) { case "home": include("home.php"); break; } so links can be something like www.url.com?id=home I have also tried to use require instead of include When the desitred link is clicked, the page loads the new link, but also includes my index page taked onto the bottom of the new pages. what can I do to prevent 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]