Hello,
I have tested several options in trying to resolve the following problem w/o success, if some one could help, I will highly appreciate it.
I have the following header placed in the script which should redirect to the "thanks page",
<?php
if($_POST["Enviar"]) {
$antro = $_POST["antro"];
$porque = $_POST["porque"];
$nombre = $_POST["nombre"];
$mail = $_POST["mail"];
$tel = $_POST["tel"];
$ciudad = $_POST["ciudad"];
$from = "From: [email]vota@antrodigital.com[/email]\n";
$message = "";
$message .= "antro: $antro\n";
$message .= "porque: $porque\n";
$message .= "nombre: $nombre\n";
$message .= "mail: $mail\n";
$message .= "tel: $tel\n";
$message .= "ciudad: $ciudad\n";
mail("vota@antrodigital.com","Contact Form Submission",$message,$from);
header("Location:thanks2.html");
}
?>
The problem is that the "thank you page (thanks2.html)" open in a new window, and I need it to be open in the same window, as it used to be in a previous server.
NOTE:- The header also tested, with not success, has been: header("Location: http://www.antrodigital.com/thanks2.html");, and
header("Location: /thanks2.html");
I don't know if the PHP verison has to do with this:
In the previous serever: PHP v: 4.3.8
In the new one: PHP v:4.3.10
I really will appreciate any help.
acumara,
Is there any one please, that can tell how to write this header, so the thanks.html page will open in the same window as the contact form is?.
Thank you.