hi,
i need help in coding for php.
the following codes is a php file for redirecting message to my email, at the same time, i also like to redirect to another html page with a "Thank you" message.
how do i insert the code that redirect the user to a thank you page?
thanks for any help rendered.
<?php
$vars = array("name", "email", "message");
foreach($vars as $var)
$$var = $_POST[$var];
$message = str_replace("\r", "\n", $message);
mail("mail@mymail.com", "contact form", "Contact form submitted by
Name: $name
Email: $email
has left this message:
$message
", "From: webserver@yoursite.com");