#20171 [NEW]: Please make a command that redirects to another page not using header("Location

From: Date: Wed, 30 Oct 2002 14:50:16 +0000
Subject: #20171 [NEW]: Please make a command that redirects to another page not using header("Location
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-23725@lists.php.net to get a copy of this message
From: hallstein@yahoo.com Operating system: Linux PHP version: 4.2.3 PHP Bug Type: Feature/Change Request Bug description: Please make a command that redirects to another page not using header("Location Please make a command that redirects a user in the middle of code. Similar to the Response.Redirect on ASP. Why? Because header("Location:") cannot redirect unless it's BEFORE the <html> tag. And I want the following: <html> Making new DATABASE record..<br> <? SQL code goes here... INSERT INTO ... If error die( redirect("error.html") ); else redirect("index.html") ); ?> Would be nice with a wait (seconds) command too, so we are sure that the user get some time to see the result, before being redirected. -- Edit bug report at http://bugs.php.net/?id=20171&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20171&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20171&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20171&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20171&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20171&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20171&r=support Expected behavior: http://bugs.php.net/fix.php?id=20171&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20171&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20171&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20171&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20171&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20171&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20171&r=isapi

« previous php.bugs (#23725) next »