Forum Moderators: open
Thanks
//This only works with apache module.
$HTTP_TEMP_PATH_VARS = explode("/",$PATH_INFO);
array_shift($HTTP_TEMP_PATH_VARS);
reset($HTTP_TEMP_PATH_VARS);
$HTTP_PATH_VARS = array();
while( list($index,$key) = each($HTTP_TEMP_PATH_VARS) ) {
list($index,$val) = each($HTTP_TEMP_PATH_VARS);
$val = urldecode($val);
$HTTP_PATH_VARS[$key] = $val;
$$key = $val;
}
?>
Example
Instead of 'http://www.server.com/page.php?id=14&this=that'
you may use 'http://www.server.com/page.php/id/14/this/that'
and still have access to $id and $this.
Thanks again :-)
Catherine