Connecting Tech Pros Worldwide Help | Site Map

headers help

brendan
Guest
 
Posts: n/a
#1: Jul 17 '05
hi ... I want to force the browser to display the query string that a
header points it to.
at the moment
where the php document is located at http://www.mysite.com/redirect.php
and it reads
header("location:http://www.mysite.com/subfolder/newpage.php?getvar1=1&getvar2=2");
the location in the browser shows
'http://www.mysite.com/redirect.php'
even though the actual page is
http://www.mysite.com/subfolder/newp...r1=1&getvar2=2
problem is that a couple of scripts within that page call a javascript
refresh ... which because its clientside reload redirect.php and NOT
newpage.php

anyone know how to do this?
cheers
brendan.

Garp
Guest
 
Posts: n/a
#2: Jul 17 '05

re: headers help



"brendan" <brendan@srl.cam.ac.uk> wrote in message
news:ca4169$gt5$1@pegasus.csx.cam.ac.uk...[color=blue]
> hi ... I want to force the browser to display the query string that a
> header points it to.
> at the moment
> where the php document is located at http://www.mysite.com/redirect.php
> and it reads
>[/color]
header("location:http://www.mysite.com/subfolder/newp...etvar1=1&getva
r2=2");[color=blue]
> the location in the browser shows
> 'http://www.mysite.com/redirect.php'
> even though the actual page is
> http://www.mysite.com/subfolder/newp...r1=1&getvar2=2
> problem is that a couple of scripts within that page call a javascript
> refresh ... which because its clientside reload redirect.php and NOT
> newpage.php
>
> anyone know how to do this?
> cheers
> brendan.
>[/color]

Have a read here:

http://www.wdvl.com/Internet/Protoco...P/Request.html


HTH
Garp


Closed Thread