Re: opening a new window using the Header("Location:") function
| From: | Erwin | Date: | Wed, 23 Oct 2002 14:09:03 +0000 |
| Subject: | Re: opening a new window using the Header("Location:") function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-121090@lists.php.net to get a copy of this message | ||
> I use the following code to redirect users to my custom error pages
> when submitting a form
>
> Header("Location: ". $form["missing_fields_redirect"]);
>
> When the code executes, it simply redirects to the URL specified in
> $form["missing_fields_redirect"] but stays within the same browser
> window. My question is: can I have the redirect page open in a new
> browser window (similar to target="_blank") when using the above code?
No, you can not do that using the Location header. You should use Javascript
for this.
Grtz
Erwin