Garayed.com  

Go Back   Garayed.com > PHP
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-13-2006, 03:40 PM
P-Rage
 
Posts: n/a
Default header(Location: $var) loops in IE

Hello everyone,

I was wondering what could possibly cause Internet Explorer 6 to loop a
page usging a header(Location statement.

For example, a page called 'page1.php':

if((isset($_POST['var'])) && ($name='valid')){

// insert some data into MySQL.

$location = 'page2.php?name='.$name;
header(sprintf("Location: %s",$location));
exit();
}

FireFox redirects the user to page2.php as planned. But IE6 loops back
to page1.php (refreshes twice on most occasions). Any ideas? Thanks in
advance for any help and advice.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:13 PM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.