From: [EMAIL PROTECTED]
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