Hi!
I’m new to PHP, so I used the tutorial http://www.kirupa.com/web/php_contact_form4.htm to create a contact form. When you press submit, it echoes a text, like “Thank you” on top of a blank page. This does not look very professional, and i would rather like it to redirect to a custom made thankyou.html. Is this possible? My sendmail.php looks like this now, I need to know what to replace the ‘Echo “Thanks”’ with:
<?php
if(isset($_POST[‘submit’])) {
$to = “kontakt@jiffy-ub.no”;
$subject = “Bestilling av hvit lue”;
$name_field = $_POST[‘navn’];
$email_field = $_POST[‘email’];
$antall = $_POST[‘antall’];
$levering = $_POST[‘levering’];
$body = “Bestillers navn: $name_field
E-Mail: $email_field
Antall: $antall
Levering: $levering”;
echo “Thanks”;
mail($to, $subject, $body);
} else {
echo “blarg!”;
}
?>