Hi,
I'm working with a very simple PHP script for collecting newsletter signups on my website. I'd like the thank you page to open in a new window. I've experimented with target="_blank" but to no avail.
I tried it in the <post> code, and then also in the processing script. Neither worked.
header("Location: http://www.domain.com/page.php" target=”_blank”);
Yes, I'm a total newbie. (Need basic answers without advanced technical terminology.)
Thanks for any help!
===========================================================================
SIGN UP FORM
<form name="newsletter-signups" method="Post" action="http://www.mywebsite.com/newsletter/newsletter-signup.php" onSubmit="return validate();" target="_blank">
<p style="margin-top: 0; margin-bottom: 0"><font face="Arial" size="2">Join our
newsletter!</font></p>
<p style="margin-top: 0; margin-bottom: 0"><font face="Arial" size="1">Email Address</font></p>
<p style="margin-top: 0; margin-bottom: 0"><font face="Arial">
<input type="edit" name="Email_Address1" value="" size="20"><font size="2">
</font></font></p>
<p style="margin-top: 0; margin-bottom: 0"><font face="Arial" size="1">Name</font></p>
<p style="margin-top: 0; margin-bottom: 0"><font face="Arial">
<input type="edit" name="Name2" value="" size="20"><font size="2"> </font>
</font></p>
<input type="submit" name="Submit" value="Subscribe"><font size="2"> </font>
</font></p>
<p style="margin-top: 0; margin-bottom: 0"></p>
</form>
===========================================================================
PHP PROCESSING SCRIPT
<?php
$email = "newsletter@mywebsite.com ";
$message = "The following newsletter signup was submitted from your website:\n
";
$message .= "Email Address: ".$REQUEST["Email_Address1"]."\n\n";
$message .= "Full Name: ".$REQUEST["Full_Name2"]."\n\n";
mail( $email, "Newsletter Signup Submission from your www.MotivationalmAGIC.com website", $message, "From: $email
X-Priority: 1 (Highest)" );
header("Location: http://www.domain.com/page.php" target=”_blank”);
?>
===========================================================================