Hi,
I have a submit form which emails values accordingly.
Once the form is submitted, either a "Thank You for Submitting page" is displayed if the email is sent succesfully or a "Please Try Again" page is displayed if the email was not sent successfully.
What I would like to do is have the page redirect after 4 seconds to one URL if the email is successful and a different URL if it is not.
I have seen mention of javascript to enable timer use but I am not sure how this would possibly fit in.
Here is the core of the script to give you an idea of what I have so far :
<?
if(@mail("enquiries@anything.com", "Website Enquiry", $strBody))
{
$strResponse1 = "Your form has been submitted.";
}
else
{
$strResponse1 = "An error occured trying to send your enquiry. Please try again>";
}
?>
<html>
<head>
</head>
<body>
<p>
<?=$strResponse1?>
</body>
</html>
Any ideas/help would be greatly appreciated
Stef