Jump to content
The Uniform Server Community

Switch Problem. :@


GodsDead
 Share

Recommended Posts

Well heres the thing, im not sure why this isnt wokign as it seems fine, adn works on other servers, maybe somehtings happedned in apache.. heres the code im trying to work:

(index.php)

<?php

switch($load){
case"":
echo"Index";
break;

case"about":
echo"About my Sexy ass.";
break;

default;
echo"page not found loser";
break;
}
?>

Pointing your browser to index.php?load=about

 

I still get "index" echoed, and i keep trying arraangements of this code, and there is no reason why it shuld work, It used to work fine..

Any ideas why this isnt working?

And i have tryed different directorys and fiddleign the code..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...