Page 1 of 1

Display HTTP Post &this=0&that=1 in referer echo?

Posted: Wed Mar 07, 2007 12:06 am
by JAB Creations
I know how to echo the referer page...

Code: Select all

$referer = basename($_SERVER['HTTP_REFERER']); echo $referer;
What I'd like to do is echo the referer page and it's HTTP GET commands (whatever they are called). I'm interesting in testing out a form right now to see if I'm passing the correct values.

So when I use a form to see it's passing variables (example.php) I'll see it's variables in the URL (example.php&this=0&that=1).

Posted: Wed Mar 07, 2007 12:25 am
by volka
What are you trying to achieve?
JAB Creations wrote:Display HTTP Post
JAB Creations wrote:What I'd like to do is echo the referer page and it's HTTP GET commands
So which one is it? post or get?

Posted: Wed Mar 07, 2007 12:27 am
by JAB Creations
Never mind, I figured it out...

Code: Select all

$referer = basename($_SERVER['HTTP_REFERER']);
echo $referer . '<br />';
I also set the form's method to "get" and it works fine (showing all the variables in the URL now).