Hi there,
I have a simple email php script. What I want it to do is redirect after the email is sent to the hompepage. It is doing this but it opens the homepage in a new tab!
Can anyone advise me on why it’s doing this? I need it to open in the same window.
Here’s my code below:
<?
$sendTo = "info@myemail.com";
$subject = "Website Form:";
$name=$_POST['theName'];
$email=$_POST['theEmail'];
$imageurl = $_POST["imageURL"];
$filename = $_POST["imageFilename"];
$imageuniqueid = $_POST["imageuniqueID"];
$sendTo = 'info@myemail.com';
$subject = "Website Form: $name $email ";
$message = "$filename $imageuniqueid $imageurl";
mail($sendTo, $subject, $message);
header("Location: index.html");
?>
Can anyone shed any light on this? Any help would be greatly appreciated!! Thankyou!!!