|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-10-30 08:59 UTC] hholzgra@php.net
[2002-10-30 09:01 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sat Jan 10 20:00:01 2026 UTC |
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.