Forum Moderators: coopster

Message Too Old, No Replies

Custom 404 and Global Variables

$_session $_get $_post $_request

         

SofterLogic UK

4:37 pm on Jun 7, 2004 (gmt 0)

10+ Year Member



I'm using a Custom 404 page, however, I am unable to access variables such as GET, POST. The scripts run fine when they are run from static pages, but this 404 trick really messes them up.

browse-> page.htm?variable=test

print_r($_GET);

response: Array ( )

Whereas, anywhere else, that would show me the variable "variable" was set to "test"

Can anyone tell me a work around for this?

vincevincevince

4:54 pm on Jun 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is something I'd really like to find an answer to. The best I know of is to use GET and parse $_SERVER["REDIRECT_QUERY_STRING"] to extract the data - far from ideal.