Re: AW: [PHP] POPUP error messages
| From: | Kevin Waterson | Date: | Thu, 26 Oct 2000 23:33:21 +0000 |
| Subject: | Re: AW: [PHP] POPUP error messages | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-22234@lists.php.net to get a copy of this message | ||
Joe Maier wrote:
>
> Hi Kevin,
>
> IMHO the only way to achieve a popup is to put a JavaScript-Function into
> the HTML and let the OnLoad-Handler call the Function. In the Function you
> can then popup an alert window.
nothing can be done with Header(Location:http://error.php
target=new);
??
if using java, I imagine I would need to do something like
if(error_condtion){Header(Location:http://error.php);
and then have the file error.php contain some sort of popup error
and then redirect to the original form the error was generated from
so that the user could try again.eg
error.php
Header(Location:http/original/form.php);
PRINT"
<html><head>
<script>
function popupscript
</script>
</head>
<body>
OnLoad pop up
</html>";
?>
or something of that nature?
--
Kind regards
Kevin Waterson