motowater
05-21-2008, 10:16 PM
Here is my situation:
http://site.com/a.php
http://site.com/b.php
http://site.com/c.php
upon calling a.php i want to use header("Location: http://site.com/b.php") in order to forward the user to that page. My dilemma is i need to be able to send the content of b.php to c.php. I dont know enough about the http protocol to know exactly how I could do this, maybe someone else does? I was reading up on the RFC and it was hard for me to understand what the content-location header does, but I think it does what I am requesting.
I tried:
header("Content-Location: http://site.com/c.php");
header("Location: http://site.com/b.php");
to no avail. Can anyone enlighten me? Thanks.
http://site.com/a.php
http://site.com/b.php
http://site.com/c.php
upon calling a.php i want to use header("Location: http://site.com/b.php") in order to forward the user to that page. My dilemma is i need to be able to send the content of b.php to c.php. I dont know enough about the http protocol to know exactly how I could do this, maybe someone else does? I was reading up on the RFC and it was hard for me to understand what the content-location header does, but I think it does what I am requesting.
I tried:
header("Content-Location: http://site.com/c.php");
header("Location: http://site.com/b.php");
to no avail. Can anyone enlighten me? Thanks.