note 42476 deleted from function.die by tomsommer
| From: | tomsommer@php.net | Date: | Tue, 18 May 2004 15:26:03 +0000 |
| Subject: | note 42476 deleted from function.die by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-69773@lists.php.net to get a copy of this message | ||
Note Submitter: Q-tech
----
I found it very usefull in combination with Javascript, when I wanted to restrict someone, display a
nicer error message and/or cover the mess :-)
For example, this will return the user to the previous page, without letting him to see current one:
die ("<script language=\"Javascript\">history.go(-1)</script>");