Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
05-19-2013, 04:18 PM #1
- Join Date
- Mar 2013
- Thanked 0 Times in 0 Posts
Using header function send visitor to one page and then to another
I have a code
When I remove call to a sleep function I am redirecting right to google.com. Even, without pause.
05-19-2013, 08:21 PM #2
- Join Date
- Feb 2011
- Your Monitor
- Thanked 506 Times in 493 Posts
The browser is not going to load one webpage (thus discarding your headers) and then load another page. No browser will work like that. If they did it would be a major security flaw and millions of people would have their browsers hijacked on a daily basis by anyone who has no hacking skill at all.
The browser will always try to execute the last header instruction in the reply headers. Granted if it gets an earlier one it will try to execute it if practical but when it recieves another it will automatically cancel the first one and execute the latter one.
My helpful sig is on vacation trying to loose some weight. It got a bit fat and caused a few problems but it will be back at some point!