Hellooo. I have a feeling this is terribly basic and that I keep messing up some small detail, so I thought I'd inquire in the land of the experts. Allow me to entertain you for a moment --
All I'd really like is when a client goes to: mywebsite.com/index.php?go=client/CLIENT NAME, they are taken to their designated page, as indicated below. I would also like an error page for if that client doesn't exist (if there's nothing after client/, or a nonexistant client named).
<?PHP
error_reporting (E_ALL ^ E_NOTICE);
if(!$go){ $go = $HTTP_GET_VARS['go']; }
if($go=="" or $go=="home"){
include("home.html");
}elseif($go=="client/CLIENTNAME"){
include("clients/CLIENTNAME/index.php");
}
?>
I could get around my lack of familiarity with PHP by just doing each client individually, but I could save a lot of coffee with a once and only once rule somewhere here. Any help? Thanks! :)
All I'd really like is when a client goes to: mywebsite.com/index.php?go=client/CLIENT
<?PHP
error_reporting (E_ALL ^ E_NOTICE);
if(!$go){ $go = $HTTP_GET_VARS['go']; }
if($go=="" or $go=="home"){
include("home.html");
}elseif($go=="client/CLIENTNAME"){
include("clients/CLIENTNAME/index.php");
}
?>
I could get around my lack of familiarity with PHP by just doing each client individually, but I could save a lot of coffee with a once and only once rule somewhere here. Any help? Thanks! :)
