Brand new to this. Trying to use PHP to process data from a mortgage application form. Don't know PHP myself, but friend of hubby wrote a script that is supposed to send contents of form to an email address. Friend has since disappeared! I keep getting the following error message when I hit my submit button:
parse error, expecting `'('' on line 4
$MailToAddr = "apps@realnetct.com";
Here are some relevant lines of script:
<?php
here is where we set/declare the variables to be used.
$MailToAddr = "apps@realnetct.com";
$ReplyToAddr = "";
$FromAddr = "Realnet Mortgage Application Robot";
This is a fake address dont worry about it
$SendingName = "mortgage_bot@realnetct.com";
$redirectUrl = "http://www.realnetct.com";
{
$headers = "From: $SendingName \n Reply-To: apps@realnetct.com";
$message .= "Name: ". $POST['name'] ."\n";
$message .= "Social Security Number: ". $POST['ssn']. "\n";
$message .= "Email Address: ". $_POST['email_address'] ."\n";
mail($MailToAddr, $FromAddr, $message, $headers);
print "<center><b><font size=+3 color=blue> Sucessfully Submitted, re-directing you </font></b></center>";
}
What's wrong? Would I insert the `'(" stuff, the error says it's expecting? If so, where?
Thanks for any help.