There is one other option if you're willing to take a slight drop in
performance. Take a quick look at:
http://www.php.net/manual/en/ref.outcontrol.php
-- Daniel Grace [EMAIL PROTECTED]
Richard Crawford [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
If you have
Can anyone advise or direct me to the documentation that references how to
send a user to a URL if an 'if' statement is satisfied?
Assuming you hadn't sent any output before:
if ($condition){
header(Location: http://wherever.com;);
exit;
}
--
PHP General Mailing List
Sorry, I'm new at this...
I have already sent output... any way to do this?
Thanks again,
Andrea
Ing. Daniel Manrique [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Can anyone advise or direct me to the documentation that references how
to
send a user to a
Good day,
I've had to do something similar to this.
I do not think there is a way to do this with only HTML- you either need to
use a header like the one shown, or a META tag, and they have to be written
right away.
I worked around this once with Javascript. The page had an ONLOAD function
If you have already sent output to the browser, then you won't be able
to use the PHP header() command to redirect the browser.
There are a couple of ways around this, though; look into the META tag
in HTML, or you can use JavaScript to redirect the browser.
If what you want to do is send all
5 matches
Mail list logo