RE: [PHP] url without a query string?

From: Date: Mon, 09 Jul 2001 06:11:47 +0000
Subject: RE: [PHP] url without a query string?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-56885@lists.php.net to get a copy of this message
On 09-Jul-01 Jon Yaggie wrote: > the problem > > i have a page that uses a query string to determine content. ie > index.php?id=2 in this page there is a link to a memebership area that uses > a remote service. this service requires that thee be the exact same > refering url. is the refering url must always be index.php. how can i do > this? can i do this? > Depends on how the remote validates the referal; since they want index.php; assume they use php as well, and get the referrer like everybody else, from $HTTP_REFERER ... so add on a "&HTTP_REFERER=/php/index.php&id=foo" to the POST/ GET. That should do it unless they've done un-speakable things to Apache/PHP. Regards, -- Don Read dread@texas.net -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it.

« previous php.general (#56885) next »