Re: Referer URL...
| From: | _lallous | Date: | Mon, 15 Oct 2001 08:42:10 +0000 |
| Subject: | Re: Referer URL... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-71074@lists.php.net to get a copy of this message | ||
Well the previous method doesn't work too...I can only think of this working
solution at the moment:
The auto submit method...(also javascript)
a.htm
-----
<html>
<head>
<title>New Document</title>
</head>
<body>
<a href='b.php'>b.php</a><br>
<a href='#' onclick='location ="b.php";'>auto
redir</a><br>
<a href='#' onclick='document.f1.submit();'>auto
submit</a><br>
<form action='b.php' name='f1' method='post'></form>
</body>
</html>
b.php
-------
<body>
<?
echo $HTTP_REFERER;
?>
<br>
<a href='#' onclick='history.go(-1);'>back</a>
</body>
"_lallous" <elias_bachaalany@yahoo.com> wrote in message
news:20011015063542.32928.qmail@pb1.pair.com...
> try the JavaScript redirection:
>
> <body onload='location = "b.php"'>
> </body>
>
>
> "Sebastian Hardung" <Hardung@itb-web.de> wrote in message
> news:20011015055013.17378.qmail@pb1.pair.com...
> >
> > Hi there,
> > ive got a problem ( surprise surprise )
> >
> > I have a Website (a) and a php site (b) the Problem is :
> > I want to set an automatic redirect on site (a) and want to get the
> referer
> > URL on site (b).
> > If the connection between a and b would be a normal Link, i could get it
> > wirh $HTTP_REFERER, but the variable stays empty with a http redirect
like
> :
> > <meta http-equiv="Refresh" content="0; url=b.php">
> > Anyone got a solution ?
> >
> > Sebastian Hardung
> >
> >
>
>