I have a php script that worked fine with an Apache server running php 4.0.3. I have since switched to a new ISP and they are running 4.0.3pl1.
The same script does not work with the new server - and it's driving me crazy trying to figure it out. Here is a sample of the code:
<?php
$mailTo = "user@mail.com";
$mailSubject = "Subject";
$mailBody .= "Name: $firstname\n";
if($mailHeaders="From: $email");
if($mailok=mail($mailTo, $mailSubject, $mailBody, $mailHeaders)) {
header("location: http://www.domain.com/thankyou.html");
} else {
echo("We're sorry. There was an error processing your request. Please try again.");
}
?>
Can someone help?