Do you have a question? Post it now! No Registration Necessary. Now with pictures!
June 21, 2005, 12:23 pm
rate this thread
here is the entire thread
Subject: Re: script in body
Date: Mon, 20 Jun 2005 17:46:28 +0300
Yes, via GET method.
<?php header("Location: index2.php?foo=1&bar=2"); ?>
Parameters foo and bar are now available to index2.php. Oh and I
mention also, that the example I gave you works in most browsers, but
standard says you need to always always include the entire address, and
just the relative filename. In other words: always use
http://www.your-domain.com/path/to/index2.php "); ?>
and never ever use
<?php header("Location: index2.php"); ?> without the entire url.
I should also mention that header data must be sent before any output.
can't print or echo anything before you've sent headers.
Copy & Follow-up to: comp.lang.php
what i need is the ability to write something to the user and then
redirect him or her to index2 or index
What's the point in running when the light at the end of the tunnel iz
just another train...