sorry I'm quite new to PHP and I can't figure out why it keeps throwing this error:
Parse error: syntax error, unexpected T_STRING in C:\Sites\Single3\o2enterprises\webroot\landingpage.php on line 29
The PHP file looks like this:
<?php
// Receiving variables
@$pfw_ip= $SERVER['REMOTE_ADDR'];
@$name = addslashes($POST['name']);
@$jobtitle = addslashes($POST['jobtitle']);
@$company = addslashes($POST['company']);
@$web = addslashes($POST['web']);
@$email = addslashes($POST['email']);
@$phone = addslashes($POST['phone']);
@$fax = addslashes($POST['fax']);
@$select = addslashes($_POST['select']);
// Validation
//Sending Email to form owner
$pfw_header = "From: $name\n"
. "Reply-To: $name\n";
$pfw_subject = "information request";
$pfw_email_to = "info@oritostrowiakenterprises.com";
$pfw_message = "Visitor's IP: $pfw_ip\n"
. "name: $name\n"
. "jobtitle: $jobtitle\n"
. "company: $company\n"
. "web: $web\n"
. "email: $email\n"
. "phone: $phone\n"
. "fax: $fax\n"
. "select: $select\n"
mail($pfw_email_to, $pfw_subject, $pfw_message, $pfw_header) ;
header("Location: landingpage_confirmation.htm");
?>
any help anyone could give me would be so appreciated!!