Jump to content

[SOLVED] Got a problem with querystrings


paulley23

Recommended Posts

hi all

i got this this bit of code:-

[code]
<?php

if ($cmd=="") {
include ("main.inc");
}
elseif ($cmd="clients") {
include ("clients.inc");
}

elseif ($cmd=="services") {
include ("services.inc");
}

elseif ($cmd=="support") {
include ("support.inc");
}

elseif ($cmd=="contact") {
include ("contact.inc";
}

elseif ($cmd=="about") {
include ("aboutus.inc");
}

elseif ($cmd=="faq") {
include ("faq.inc");
}

else {
include ("error.inc");
}

?>
[/code]

but to dont work, i have just change over servers to mine own server and before i move it , it worked fine.

when i go to /index.php?cmd=about i just displays the main.inc

any ideas why this could be.

thanks

paul
Link to comment
https://forums.phpfreaks.com/topic/30168-solved-got-a-problem-with-querystrings/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.