Re: [PHP] how to send to URL on if statement?

2002-01-19 Thread Daniel Grace
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

Re: [PHP] how to send to URL on if statement?

2002-01-18 Thread Ing. Daniel Manrique
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

Re: [PHP] how to send to URL on if statement?

2002-01-18 Thread Andrea Caldwell
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

RE: [PHP] how to send to URL on if statement?

2002-01-18 Thread Darren Gamble
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

Re: [PHP] how to send to URL on if statement?

2002-01-18 Thread Richard Crawford
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