I have this code for PHP4, Network Solutions is running PHP5… They want 60 bucks to get this to work on PHP5… lol I am asking for assistance! It is a SWISH Max 4 Flash site that I created.
[php]<?php
$EmailFrom = "[email protected]";// edit
$EmailTo = "[email protected]";// edit
$Subject = “Website Enquiry”;// edit
// -------------- do not edit below--------------
$maintenanceStatusVar = Trim(stripslashes($_POST[‘maintenanceStatusVar’]));
$businessNameVar = Trim(stripslashes($_POST[‘businessNameVar’]));
$quoteVar = Trim(stripslashes($_POST[‘quoteVar’]));
$priorityVar = Trim(stripslashes($_POST[‘priorityVar’]));
$ManufacturerVar = Trim(stripslashes($_POST[‘ManufacturerVar’]));
$modelVar = Trim(stripslashes($_POST[‘modelVar’]));
$serialVar = Trim(stripslashes($_POST[‘serialVar’]));
$cantactNameVar = Trim(stripslashes($_POST[‘cantactNameVar’]));
$phoneVar = Trim(stripslashes($_POST[‘phoneVar’]));
$hoursVar = Trim(stripslashes($_POST[‘hoursVar’]));
$decriptionVar = Trim(stripslashes($_POST[‘decriptionVar’]));
$Body = “”;
$Body .= "Maintenance Status: ";
$Body .= $maintenanceStatusVar;
$Body .= “\n”;
$Body .= "Business Name: ";
$Body .= $businessNameVar;
$Body .= “\n”;
$Body .= "Manufacturer: ";
$Body .= $ManufacturerVar;
$Body .= “\n”;
$Body .= "Model: ";
$Body .= $modelVar;
$Body .= “\n”;
$Body .= "Serial: ";
$Body .= $serialVar;
$Body .= “\n”;
$Body .= "Contact Name: ";
$Body .= $cantactNameVar;
$Body .= “\n”;
$Body .= "Phone #: ";
$Body .= $phoneVar;
$Body .= “\n”;
$Body .= "Business Hours: ";
$Body .= $hoursVar;
$Body .= “\n”;
$Body .= "Priority Level: ";
$Body .= $priorityVar;
$Body .= “\n”;
$Body .= "Request Quote: ";
$Body .= $quoteVar;
$Body .= “\n”;
$Body .= "Problem Description: ";
$Body .= $decriptionVar;
$Body .= “\n”;
$success = mail($EmailTo, $Subject, $Body, “From: <$EmailFrom>”);
?>
[/php]