#20171 [Opn->Bgs]: Please make a command that redirects to another page not using header("Location
| From: | hholzgra@php.net | Date: | Wed, 30 Oct 2002 14:59:05 +0000 |
| Subject: | #20171 [Opn->Bgs]: Please make a command that redirects to another page not using header("Location | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-23727@lists.php.net to get a copy of this message | ||
ID: 20171
Updated by: hholzgra@php.net
Reported By: hallstein@yahoo.com
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: 4.2.3
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2002-10-30 08:50:16] hallstein@yahoo.com
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 this bug report at http://bugs.php.net/?id=20171&edit=1