Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Aug 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Problem with my code...

    I inherited this website from our former IT person I am having problem making this work. I am getting this error
    "PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in on line 153"

    Could someone please check on the codes. Thank you in advance.

    Start

    <?PHP
    $formtype = $_POST['formtype'];
    $Comment = $_POST['Comment'];
    $Phone = $_POST['Phone'];
    $Email = $_POST['Email'];
    $FirstName = $_POST['FirstName'];
    $LastName = $_POST['LastName'];
    $Street1 = $_POST['Street1'];
    $Street2 = $_POST['Street2'];
    $City = $_POST['City'];
    $State = $_POST['State'];
    $Zip = $_POST['Zip'];
    $Country = $_POST['Country'];

    include "http://www.lighthouseprophecy.com/cgi-bin/constants.inc";
    $LHP = "webmaster@lighthouseprophecy.com,contact@lighthouseprophecy.com";

    $ID = time(); // date( "Y-m-d" ) $today = date("D M j G:i:s T Y"); Sat Mar 10 15:16:08 MST 2001
    $Date = date( "M-j-Y " );
    $Comment = str_replace("\n"," ",$Comment);
    $Comment = str_replace("\r"," ",$Comment);
    $Comment = trim($Comment);
    $Comment = $formtype . " " . $Comment;

    $OutString = "$formtype\t$ID\t$Comment\t$FirstName\t$LastName\t$Street1\t$Street2\t$City\t$State\t$Zip\t$Country\ t$Email\t$Phone \n";
    $Name = $FirstName . " " . $LastName;

    $errors = array();
    if($_SERVER['REQUEST_METHOD'] == "POST"){$form_input = $_POST;}elseif($_SERVER['REQUEST_METHOD'] == "GET"){$form_input = $_GET;}else{exit;}


    // Remove leading whitespace from all values.
    function recursive_array_check(&$element_value)
    {
    if(!is_array($element_value)){$element_value = ltrim($element_value);}
    else
    {
    foreach($element_value as $key => $value){$element_value[$key] = recursive_array_check($value);}
    }
    return $element_value;
    }
    recursive_array_check($form_input);


    // Check referrer is from same site.
    if(!(isset($_SERVER['HTTP_REFERER']) && !empty($_SERVER['HTTP_REFERER']) && stristr($_SERVER['HTTP_REFERER'],$_SERVER['HTTP_HOST']))){$errors[] = "You must enable referrer logging to use the form";}


    // Strip HTML tags from all fields.
    function recursive_array_check2(&$element_value)
    {
    if(!is_array($element_value)){$element_value = strip_tags($element_value);}
    else {
    foreach($element_value as $key => $value){$element_value[$key] = recursive_array_check2($value);}
    }
    return $element_value;
    }
    recursive_array_check2($form_input);


    // Validate FirstName field.
    if(isset($form_input['FirstName']) && !empty($form_input['FirstName']))
    {
    if(preg_match("`[\r\n]`",$form_input['FirstName'])){$errors[] = "You have submitted an invalid new line character";}
    if(preg_match("/[^a-z' -]/i",stripslashes($form_input['FirstName']))){$errors[] = "You have submitted an invalid character in the frist name field";}
    }

    // Validate LastName field.
    if(isset($form_input['LastName']) && !empty($form_input['LastName']))
    {
    if(preg_match("`[\r\n]`",$form_input['LastName'])){$errors[] = "You have submitted an invalid new line character";}
    if(preg_match("/[^a-z' -]/i",stripslashes($form_input['FirstName']))){$errors[] = "You have submitted an invalid character in the last name field";}
    }

    // Validate Phone field.
    if(isset($form_input['Phone']) && !empty($form_input['Phone']))
    {
    if(preg_match("`[\r\n]`",$form_input['Phone'])){$errors[] = "You have submitted an invalid new line character";}
    // if(preg_match("/[^a-z' -]/i",stripslashes($form_input['FirstName']))){$errors[] = "You have submitted an invalid character in the phone field";}
    }

    // Validate Street1 field.
    if(isset($form_input['Street1']) && !empty($form_input['Street1']))
    {
    if(preg_match("`[\r\n]`",$form_input['Street1'])){$errors[] = "You have submitted an invalid new line character";}
    }

    // Validate Street2 field.
    if(isset($form_input['Street2']) && !empty($form_input['Street2']))
    {
    if(preg_match("`[\r\n]`",$form_input['Street2'])){$errors[] = "You have submitted an invalid new line character";}
    }

    // Validate City field.
    if(isset($form_input['City']) && !empty($form_input['City']))
    {
    if(preg_match("`[\r\n]`",$form_input['City'])){$errors[] = "You have submitted an invalid new line character";}
    }


    // Validate email field.
    if(isset($form_input['Email']) && !empty($form_input['Email']))
    {
    if(preg_match("`[\r\n]`",$form_input['Email'])){$errors[] = "You have submitted an invalid new line character";}
    if(!preg_match('/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-z]{2,4}$/i',$form_input['Email'])){$errors[] = "Email address is invalid";}
    }

    // Display any errors and exit if errors exist.
    if(count($errors)){foreach($errors as $value){print "$value<br>";}
    exit;}

    // Home Church
    if ($formtype == HC) {
    // autoresponder
    $message = "Dear " . $FirstName . ", \n\n Thank you for visiting LightHouseProphecy.com and sending us your Home-Church submission. \n Please be aware that by making your submission, you have given us permission to list your information on our website. \n\n\n God bless you, \n\n Clay Sikes \n";
    $message = stripslashes($message);
    $subject = "Home-Church submission " . $ID;
    $headers = "From: " . $form_input['LHP'] . "\n" . "Return-Path: " . $form_input['LPH'] . "\n" . "Reply-To: " . $form_input['LPH'] . "\n";
    mail($Email,$subject,$message,$headers);

    // send to Clay
    $message = "From: " . $FirstName . " \n\n Comment: " . $Comment . "\n\n Contact Information: \n\n" . $Name . "\n" . $Email . "\n" . $Phone . " \n\n" . $Street1 . " " . $Street2 "\n" . $City . " " . $State . " " . $Zip . " \n\n";
    $message = stripslashes($message);
    $subject = "Home-Church submission " . $ID;
    $headers = "From: " . $form_input['Email'] . "\n" . "Return-Path: " . $form_input['Email'] . "\n" . "Reply-To: " . $form_input['Email'] . "\n";
    mail($LHP,$subject,$message,$headers);

    }



    // Praise Report
    if ($formtype == S) {
    // autoresponder
    $message = "Dear " . $FirstName . ", \n\n Thank you for visiting LightHouseProphecy.com and sending us your praise report. \n\n\n God bless you, \n\n Clay Sikes \n";
    $message = stripslashes($message);
    $subject = "Praise Report! " . $ID;
    $headers = "From: " . $form_input['LHP'] . "\n" . "Return-Path: " . $form_input['LPH'] . "\n" . "Reply-To: " . $form_input['LPH'] . "\n";
    mail($Email,$subject,$message,$headers);

    // send to Clay
    $message = "From: " . $FirstName . " \n\n Comment: " . $Comment . "\n\n Contact Information: \n\n" . $Name . "\n" . $Email . "\n" . $Phone . " \n\n" . $Street1 . " " . $Street2 "\n" . $City . " " . $State . " " . $Zip . " \n\n";
    $message = stripslashes($message);
    $subject = "Praise Report! " . $ID;
    $headers = "From: " . $form_input['Email'] . "\n" . "Return-Path: " . $form_input['Email'] . "\n" . "Reply-To: " . $form_input['Email'] . "\n";
    mail($LHP,$subject,$message,$headers);

    }


    // 'Prophecy' type of contact
    if ($formtype == P) {
    $message = "Dear " . $FirstName . ", \n\n Thank you for visiting LightHouseProphecy.com, we enjoy hearing from you. \n This email is your confirmation that we have received the following message from you. \n\n" . $Comment . "\n\n Our contact information for you is: \n" . $Name . " " . $Email . " " . $Phone . " \n\n We appreciate your communication with LHP. \n\n\n\n Clay Sikes \n";
    $message = stripslashes($message);
    $subject = "Submitted Word " . $ID;
    $headers = "From: " . $form_input['LHP'] . "\n" . "Return-Path: " . $form_input['LPH'] . "\n" . "Reply-To: " . $form_input['LPH'] . "\n";
    mail($Email,$subject,$message,$headers);

    // send to Clay
    $message = "From: " . $FirstName . " \n\n Comment: " . $Comment . "\n\n Contact Information: \n\n" . $Name . "\n" . $Email . "\n" . $Phone . " \n\n" . $Street1 . " " . $Street2 "\n" . $City . " " . $State . " " . $Zip . " \n\n";
    $message = stripslashes($message);
    $subject = "Submitted Prophecy or Word! " . $ID;
    $headers = "From: " . $form_input['Email'] . "\n" . "Return-Path: " . $form_input['Email'] . "\n" . "Reply-To: " . $form_input['Email'] . "\n";
    mail($LHP,$subject,$message,$headers);

    }


    // 'Other' type of contact
    if ($formtype == O) {
    $message = "Dear " . $FirstName . ", \n\n Thank you for visiting LightHouseProphecy.com, we enjoy hearing from you. \n This email is your confirmation that we have received the following message from you. \n\n" . $Comment . "\n\n Our contact information for you is: \n" . $Name . " " . $Email . " " . $Phone . " \n\n We appreciate your communication with LHP. \n\n\n\n Clay Sikes \n";
    $message = stripslashes($message);
    $subject = "You selected Other ;-) " . $ID;
    $headers = "From: " . $form_input['LHP'] . "\n" . "Return-Path: " . $form_input['LPH'] . "\n" . "Reply-To: " . $form_input['LPH'] . "\n";
    mail($Email,$subject,$message,$headers);

    // send to Clay
    $message = "From: " . $FirstName . " \n\n Comment: " . $Comment . "\n\n Contact Information: \n\n" . $Name . "\n" . $Email . "\n" . $Phone . " \n\n" . $Street1 . " " . $Street2 "\n" . $City . " " . $State . " " . $Zip . " \n\n";
    $message = stripslashes($message);
    $subject = "Other Communication from LHP site! " . $ID;
    $headers = "From: " . $form_input['Email'] . "\n" . "Return-Path: " . $form_input['Email'] . "\n" . "Reply-To: " . $form_input['Email'] . "\n";
    mail($LHP,$subject,$message,$headers);

    }
    ?>

    end

  • #2
    Senior Coder TheShaner's Avatar
    Join Date
    Sep 2005
    Location
    Orlando, FL
    Posts
    1,126
    Thanks
    2
    Thanked 40 Times in 40 Posts
    First off, use the [CODE][/CODE] tags around your code so that it's more readable.

    Second, you should always specify which line is causing the error. I had to throw it in notepad to find out what line was 153.

    As for the problem, every line that has something like:
    PHP Code:
    if ($formtype == HC
    should be changed to:
    PHP Code:
    if ($formtype == "HC"
    These are the other lines like that that need double quotes around the letters:
    PHP Code:
    if ($formtype == S)
    if (
    $formtype == P)
    if (
    $formtype == O
    -Shane

  • #3
    Banned
    Join Date
    Apr 2007
    Posts
    428
    Thanks
    29
    Thanked 5 Times in 5 Posts
    wrong-> 153: if ($formtype == P)
    right -> 153: if ($formtype == "P")

    Tip: use PHP BBcode for showing your PHP code

    Edit: Darn, TheShaner beat me to it. Damn these little white rabbits..

  • #4
    New Coder
    Join Date
    Aug 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    sorry for not using the code tag. I still get the same error. Here is whole code.
    Code:
    <html>
    <head>
    	<title>Thank you for contacting us</title>
    <link rel="stylesheet" href="http://www.lighthouseprophecy.com/standard.css" type="text/css">
    </head>
    
    <body bgcolor="#C0C0FF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <a name="top"></a>
    <table width="760" border="2" bordercolor="0000000" cellpadding="0" cellspacing="0" align="center"><tr><td>
    
    <table width="760" background="http://www.lighthouseprophecy.com/images/Light-paper.gif" border="0" cellpadding="0" cellspacing="0" align="center">
    <tr><td valign="top" width="760" align="center"><img src="http://www.lighthouseprophecy.com/images/header3-top.jpg" alt="" width="760" height="82" border="0"></td></tr>
    <tr><td width="760" background="http://www.lighthouseprophecy.com/images/header3-bottom.jpg">
    	<table width="760" border="0" cellpadding="0" cellspacing="0"><tr>
    	<td width="200" align="left"><img src="http://www.lighthouseprophecy.com/images/Space1.gif" alt="" width="1" height="5" border="0"><p align="left" class="header1">&nbsp; &nbsp; &nbsp;Thank You</p></td>
    	<td width="560" align="right" valign="middle"><p align="right"><a href="http://www.lighthouseprophecy.com/aboutus.html">About Us</a> &nbsp; &nbsp;&nbsp; 
    	<a href="http://www.lighthouseprophecy.com/teachings.html">Teachings</a> &nbsp; &nbsp;&nbsp; <a href="http://www.lighthouseprophecy.com/contactus.html">Contact Us</a> &nbsp; &nbsp;&nbsp; 
    	<a href="http://lighthouseprophecy.injesus.com" target="_blank">Newsletters</a> &nbsp; &nbsp;&nbsp; 
    	<a href= "http://www.lighthouseprophecy.com/list.html">Prophecies</a> <img align="absmiddle" src="http://www.lighthouseprophecy.com/images/Space1.gif" alt="" width="20" height="48" border="0"></p></td>
    	
    	</tr></table>
    </td></tr>
    <tr><td background="images/Light-paper-purple.gif"><p align="right"><a href="http://www.lighthouseprophecy.com/"><img src="http://www.lighthouseprophecy.com/images/iconHome.gif" alt="Home" width="14" height="11" border="0"></a>&nbsp;&nbsp;<a href="#bottom"><img src="http://www.lighthouseprophecy.com/images/iconPointer-down.gif" alt="Bottom" width="14" height="11" border="0"></a>&nbsp;&nbsp;</p></td></tr>
    <tr><td background="ffffff"><img src="http://www.lighthouseprophecy.com/images/Space1.gif" alt="" width="760" height="6" border="0"></td></tr>
    <tr><td valign="top">
    <p>&nbsp;</p>
    
    <table border="0" cellpadding="0" cellspacing="0" width="760" align="center">
    <tr><td>
    
    
    <?PHP
    $formtype = $_POST['formtype'];
    $Comment = $_POST['Comment'];
    $Phone = $_POST['Phone'];
    $Email = $_POST['Email'];
    $FirstName = $_POST['FirstName'];
    $LastName = $_POST['LastName'];
    $Street1 = $_POST['Street1'];
    $Street2 = $_POST['Street2'];
    $City = $_POST['City'];
    $State = $_POST['State'];
    $Zip = $_POST['Zip'];
    $Country = $_POST['Country'];
    
    include "http://www.lighthouseprophecy.com/cgi-bin/constants.inc";
    $LHP = "webmaster@lighthouseprophecy.com,contact@lighthouseprophecy.com";
    
    $ID = time(); // date( "Y-m-d" )  $today = date("D M j G:i:s T Y");    Sat Mar 10 15:16:08 MST 2001
    $Date = date( "M-j-Y " );
    $Comment = str_replace("\n"," ",$Comment);
    $Comment = str_replace("\r"," ",$Comment);
    $Comment = trim($Comment);
    $Comment = $formtype . " " . $Comment;
    
    $OutString = "$formtype\t$ID\t$Comment\t$FirstName\t$LastName\t$Street1\t$Street2\t$City\t$State\t$Zip\t$Country\t$Email\t$Phone \n";
    $Name = $FirstName . " " . $LastName;
    
    $errors = array();
    if($_SERVER['REQUEST_METHOD'] == "POST"){$form_input = $_POST;}elseif($_SERVER['REQUEST_METHOD'] == "GET"){$form_input = $_GET;}else{exit;}
    
    
    // Remove leading whitespace from all values.
    function recursive_array_check(&$element_value)
    {
    if(!is_array($element_value)){$element_value = ltrim($element_value);}
    else
    {
    foreach($element_value as $key => $value){$element_value[$key] = recursive_array_check($value);}
    }
    return $element_value;
    }
    recursive_array_check($form_input);
    
    
    // Check referrer is from same site.
    if(!(isset($_SERVER['HTTP_REFERER']) && !empty($_SERVER['HTTP_REFERER']) && stristr($_SERVER['HTTP_REFERER'],$_SERVER['HTTP_HOST']))){$errors[] = "You must enable referrer logging to use the form";}
    
    
    // Strip HTML tags from all fields.
    function recursive_array_check2(&$element_value)
    {
    	if(!is_array($element_value)){$element_value = strip_tags($element_value);}
    	else {
    	foreach($element_value as $key => $value){$element_value[$key] = recursive_array_check2($value);}
    }
    return $element_value;
    }
    recursive_array_check2($form_input);
    
    
    // Validate FirstName field.
    if(isset($form_input['FirstName']) && !empty($form_input['FirstName']))
    {
    	if(preg_match("`[\r\n]`",$form_input['FirstName'])){$errors[] = "You have submitted an invalid new line character";}
    	if(preg_match("/[^a-z' -]/i",stripslashes($form_input['FirstName']))){$errors[] = "You have submitted an invalid character in the frist name field";}
    }
    
    // Validate LastName field.
    if(isset($form_input['LastName']) && !empty($form_input['LastName']))
    {
    	if(preg_match("`[\r\n]`",$form_input['LastName'])){$errors[] = "You have submitted an invalid new line character";}
    	if(preg_match("/[^a-z' -]/i",stripslashes($form_input['FirstName']))){$errors[] = "You have submitted an invalid character in the last name field";}
    }
    
    // Validate Phone field.
    if(isset($form_input['Phone']) && !empty($form_input['Phone']))
    {
    	if(preg_match("`[\r\n]`",$form_input['Phone'])){$errors[] = "You have submitted an invalid new line character";}
    //	if(preg_match("/[^a-z' -]/i",stripslashes($form_input['FirstName']))){$errors[] = "You have submitted an invalid character in the phone field";}
    }
    
    // Validate Street1 field.
    if(isset($form_input['Street1']) && !empty($form_input['Street1']))
    {
    	if(preg_match("`[\r\n]`",$form_input['Street1'])){$errors[] = "You have submitted an invalid new line character";}
    }
    
    // Validate Street2 field.
    if(isset($form_input['Street2']) && !empty($form_input['Street2']))
    {
    	if(preg_match("`[\r\n]`",$form_input['Street2'])){$errors[] = "You have submitted an invalid new line character";}
    }
    
    // Validate City field.
    if(isset($form_input['City']) && !empty($form_input['City']))
    {
    	if(preg_match("`[\r\n]`",$form_input['City'])){$errors[] = "You have submitted an invalid new line character";}
    }
    
    
    // Validate email field.
    if(isset($form_input['Email']) && !empty($form_input['Email']))
    {
    if(preg_match("`[\r\n]`",$form_input['Email'])){$errors[] = "You have submitted an invalid new line character";}
    if(!preg_match('/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-z]{2,4}$/i',$form_input['Email'])){$errors[] = "Email address is invalid";}
    }
    
    // Display any errors and exit if errors exist.
    if(count($errors)){foreach($errors as $value){print "$value<br>";} 
    exit;}
    
    // Home Church
    if ($formtype == "HC") {
    	// autoresponder 
    $message = "Dear " . $FirstName . ", \n\n Thank you for visiting LightHouseProphecy.com and sending us your Home-Church submission. \n Please be aware that by making your submission, you have given us permission to list your information on our website. \n\n\n God bless you,  \n\n Clay Sikes \n";
    $message = stripslashes($message);
    $subject = "Home-Church submission " . $ID;
    $headers = "From: " . $form_input['LHP'] . "\n" . "Return-Path: " . $form_input['LHP'] . "\n" . "Reply-To: " . $form_input['LHP'] . "\n";
    mail($Email,$subject,$message,$headers);
    	
    	// send to Clay 
    $message = "From: " . $FirstName . " \n\n Comment:  " . $Comment . "\n\n Contact Information: \n\n" .  $Name . "\n" . $Email . "\n" . $Phone . " \n\n" . $Street1 . " " . $Street2 "\n" . $City . " " . $State . " " . $Zip . " \n\n";
    $message = stripslashes($message);
    $subject = "Home-Church submission " . $ID;
    $headers = "From: " . $form_input['Email'] . "\n" . "Return-Path: " . $form_input['Email'] . "\n" . "Reply-To: " . $form_input['Email'] . "\n";
    mail($LHP,$subject,$message,$headers);
    
    }		
    
    
    
    // Praise Report
    if ($formtype == "S") {
    	// autoresponder 
    $message = "Dear " . $FirstName . ", \n\n Thank you for visiting LightHouseProphecy.com and sending us your praise report. \n\n\n God bless you,  \n\n Clay Sikes \n";
    $message = stripslashes($message);
    $subject = "Praise Report! " . $ID;
    $headers = "From: " . $form_input['LHP'] . "\n" . "Return-Path: " . $form_input['LHP'] . "\n" . "Reply-To: " . $form_input['LHP'] . "\n";
    mail($Email,$subject,$message,$headers);
    	
    	// send to Clay 
    $message = "From: " . $FirstName . " \n\n Comment:  " . $Comment . "\n\n Contact Information: \n\n" .  $Name . "\n" . $Email . "\n" . $Phone . " \n\n" . $Street1 . " " . $Street2 "\n" . $City . " " . $State . " " . $Zip . " \n\n";
    $message = stripslashes($message);
    $subject = "Praise Report! " . $ID;
    $headers = "From: " . $form_input['Email'] . "\n" . "Return-Path: " . $form_input['Email'] . "\n" . "Reply-To: " . $form_input['Email'] . "\n";
    mail($LHP,$subject,$message,$headers);
    
    }		
    
    
    // 'Prophecy' type of contact
    if ($formtype == "P") {
    $message = "Dear " . $FirstName . ", \n\n Thank you for visiting LightHouseProphecy.com, we enjoy hearing from you. \n This email is your confirmation that we have received the following message from you.  \n\n" .  $Comment . "\n\n Our contact information for you is: \n" . $Name . "  " . $Email . "  " . $Phone . " \n\n We appreciate your communication with LHP. \n\n\n\n Clay Sikes \n";
    $message = stripslashes($message);
    $subject = "Submitted Word " . $ID;
    $headers = "From: " . $form_input['LHP'] . "\n" . "Return-Path: " . $form_input['LHP'] . "\n" . "Reply-To: " . $form_input['LHP'] . "\n";
    mail($Email,$subject,$message,$headers);
    	
    	// send to Clay 
    $message = "From: " . $FirstName . " \n\n Comment:  " . $Comment . "\n\n Contact Information: \n\n" .  $Name . "\n" . $Email . "\n" . $Phone . " \n\n" . $Street1 . " " . $Street2 "\n" . $City . " " . $State . " " . $Zip . " \n\n";
    $message = stripslashes($message);
    $subject = "Submitted Prophecy or Word! " . $ID;
    $headers = "From: " . $form_input['Email'] . "\n" . "Return-Path: " . $form_input['Email'] . "\n" . "Reply-To: " . $form_input['Email'] . "\n";
    mail($LHP,$subject,$message,$headers);
    
    }		
    
    
    // 'Other' type of contact
    if ($formtype == "O") {
    $message = "Dear " . $FirstName . ", \n\n Thank you for visiting LightHouseProphecy.com, we enjoy hearing from you. \n This email is your confirmation that we have received the following message from you.  \n\n" .  $Comment . "\n\n Our contact information for you is: \n" . $Name . "  " . $Email . "  " . $Phone . " \n\n We appreciate your communication with LHP. \n\n\n\n Clay Sikes \n";
    $message = stripslashes($message);
    $subject = "You selected Other ;-) " . $ID;
    $headers = "From: " . $form_input['LHP'] . "\n" . "Return-Path: " . $form_input['LHP'] . "\n" . "Reply-To: " . $form_input['LHP'] . "\n";
    mail($Email,$subject,$message,$headers);
    	
    	// send to Clay 
    $message = "From: " . $FirstName . " \n\n Comment:  " . $Comment . "\n\n Contact Information: \n\n" .  $Name . "\n" . $Email . "\n" . $Phone . " \n\n" . $Street1 . " " . $Street2 "\n" . $City . " " . $State . " " . $Zip . " \n\n";
    $message = stripslashes($message);
    $subject = "Other Communication from LHP site! " . $ID;
    $headers = "From: " . $form_input['Email'] . "\n" . "Return-Path: " . $form_input['Email'] . "\n" . "Reply-To: " . $form_input['Email'] . "\n";
    mail($LHP,$subject,$message,$headers);
    
    }		
    ?>
    
    <table border="0" cellpadding="0" cellspacing="0" width="760" align="center">
    <tr valign="top">
    
    <td width="760" align="center">  <p>&nbsp;</p>
    <p><span class="sp">T</span>hank you for contact us at LightHouseProphecy.com, 
    <br>We appreciate your communication.</p>
    <p>&nbsp;</p><a name="bottom"> </a>
    <p>&nbsp; </p>
    <p align="center" class="sm">The Sikes Group
    <br>&copy; 
    <script type="text/javascript" language="JavaScript">
    <!--
    var current = new Date();
    document.write((current.getFullYear()));
    //-->
    </script>
     All Rights Reserved</p>
    
      <table border="0" background="../images/navbarbottom2.jpg" cellpadding="0" cellspacing="0" width="760" height="72">
      <tr><td colspan="7" align="right"><br>
      <a href="http://www.lighthouseprophecy.com/"><img src="../images/iconHome.gif" alt="Home" width="14" height="11" border="0"></a>&nbsp;&nbsp;<a href="#top"><img src="../images/iconPointer-up.gif" alt="Top" width="14" height="11" border="0"></a>&nbsp;&nbsp;</td></tr>
      <tr> 
    	<td width="16%"><p>&nbsp;</p></td>
    	<td width="14%"><p align="center"><a href="http://www.lighthouseprophecy.com/aboutus.html">About Us</a></p></td>
    	<td width="14%"><p align="center"><a href="http://www.lighthouseprophecy.com/teachings.html">Teachings</a></p></td>
    	<td width="14%"><p align="center"><a href="http://www.lighthouseprophecy.com/resources.html">Resources</a></p></td>
    	<td width="14%"><p align="center"><a href="http://lighthouseprophecy.injesus.com" target="_blank">Newsletters</a></p></td>
    	<td width="14%"><p align="center"><a href="http://www.lighthouseprophecy.com/list.html">Prophecies</a></p></td>
    	<td width="14%"><p>&nbsp;</p></td>
    	</tr>
    	</table>
    	</td>
      </tr>
      </table>
    </td>
    </tr>
    </table>
    </td></tr></table>
    </td>
    <td width="163" valign="top"><!-- Last Column --> 
    </td>
    </tr>
    
    	</td></tr></table>
    </td></tr></table>
    </td></tr></table>
    </body>
    </html>

  • #5
    Senior Coder TheShaner's Avatar
    Join Date
    Sep 2005
    Location
    Orlando, FL
    Posts
    1,126
    Thanks
    2
    Thanked 40 Times in 40 Posts
    Line 153 is:
    PHP Code:
    $message "From: " $FirstName " \n\n Comment:  " $Comment "\n\n Contact Information: \n\n" .  $Name "\n" $Email "\n" $Phone " \n\n" $Street1 " " $Street2 "\n" $City " " $State " " $Zip " \n\n"
    If you look closely, there is no period (concatenation operator) after $street2

    It should be:
    PHP Code:
    $message "From: " $FirstName " \n\n Comment:  " $Comment "\n\n Contact Information: \n\n" .  $Name "\n" $Email "\n" $Phone " \n\n" $Street1 " " $Street2 "\n" $City " " $State " " $Zip " \n\n"
    -Shane

  • #6
    New Coder
    Join Date
    Aug 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you very much it works great...


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •