volcomp
02-11-2005, 07:09 PM
Hi all...
I was checking some earlier PHP scripts I had used in a few different websites and noticed it worked fine on some servers and didn't work on a server that used PHP version 4.3.1!
Is there something I can do to fix my code? Is something missing?
here it is...
<?php
$ToEmail = "me@name.com";
$ToName = "Jodi";
$ToSubject = "ELITE Service Request Form";
$EmailBody = "\n\n-----Contact Information-----
$FirstName = $_POST['FirstName'];
$Email = $_POST['Email'];
$Phone = $_POST['Phone'];
$Fax = $_POST['Fax'];
$Street = $_POST['Street'];
$Company = $_POST['Company'];
\n\n-----Service Information-----
$Type = $_POST['Type'];
$Doforyou = $_POST['Doforyou'];
$Contactyou = $_POST['Contactyou'];
$Hearaboutus = $_POST['Hearaboutus'];
$ToComments = $_POST['ToComments'];
\n\n";
$EmailFooter="\nIf you feel that you recieved this e-mail by accident please contact us at ...";
$Message = $EmailBody.$EmailFooter;
mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$FirstName." <info@name.ca>");
?>
Help!
I was checking some earlier PHP scripts I had used in a few different websites and noticed it worked fine on some servers and didn't work on a server that used PHP version 4.3.1!
Is there something I can do to fix my code? Is something missing?
here it is...
<?php
$ToEmail = "me@name.com";
$ToName = "Jodi";
$ToSubject = "ELITE Service Request Form";
$EmailBody = "\n\n-----Contact Information-----
$FirstName = $_POST['FirstName'];
$Email = $_POST['Email'];
$Phone = $_POST['Phone'];
$Fax = $_POST['Fax'];
$Street = $_POST['Street'];
$Company = $_POST['Company'];
\n\n-----Service Information-----
$Type = $_POST['Type'];
$Doforyou = $_POST['Doforyou'];
$Contactyou = $_POST['Contactyou'];
$Hearaboutus = $_POST['Hearaboutus'];
$ToComments = $_POST['ToComments'];
\n\n";
$EmailFooter="\nIf you feel that you recieved this e-mail by accident please contact us at ...";
$Message = $EmailBody.$EmailFooter;
mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$FirstName." <info@name.ca>");
?>
Help!