quote:
Originally posted by CookieRevised
What happens if the creator hasn't access to a PHP enabled host?
Well, obviously if the user is creating it then he'd know he has PHP. You can't just say "bah, everyone without JS don't matter"
You can't make predications on your visitors like that
quote:
Originally posted by CookieRevised
If it is only for redirecting, then yes (but isn't PHP doing this also in way?). But, just as in PHP, it can be used for far more things than only that.
In PHP, I wouldn't make it redirect, i'd make it seem totally transparent to the user and use an include() function.
So something like:
code:
<?php
$action = ($_GET['action'] ? $_GET['action']; : $_POST['action']); // Assign $action based on if we're getting or posting.
switch($_GET['action'])
{
case "test":
include "test.php";
break;
default:
include "home.php";
break;
}
?>
(However, you have to expand on it - it only supports pages you've added to the switch..)