- Impact
- 66
Im trying to use the PHP mail function, but it just doesnt seem to work. PHP 4.3.11 is running on the server. my script has:
whats wrong with this?
it trips on line 28, which....
NEVERMIND
i figured it out... im missing a semicolon on the line above... damn it. do u see any other errors tho?
PHP:
<?php
$fname=$_POST['fname'];
$lname=$_POST['lname'];
$address=$_POST['address'];
$city=$_POST['city'];
$state=$_POST['state'];
$zip=$_POST['zip'];
$size=$_POST['size'];
$date=date('l dS \of F Y h:i:s A');
if($size=="s"){
$size="12\" x 18\"";
}
else if($size=="l"){
$size="24\" x 36\"";
}
$email="[email protected]";
$subject=$fname . " " . $lname . "Poster Order";
$body="Order Information:\n" .
"First Name: " . $fname . "\n" .
"Last Name: " . $lname . "\n" .
"Address: " . $address . "\n" .
"City: " . $city . "\n" .
"State: " . $state . "\n" .
"Zip Code: " . $zip . "\n" .
"Poster Size: " . $size . "\n" .
"Time and date of order: " . $date;
$header="From: [email protected]" . "\r\n"
$sent=mail($email,$subject,$body,$header);
if($sent==TRUE){
echo Sent;
}
else{
echo Not Sent;
}
?>
whats wrong with this?
it trips on line 28, which....
NEVERMIND
i figured it out... im missing a semicolon on the line above... damn it. do u see any other errors tho?









