Page 1 of 1

can anyone spot the parse error?

Posted: Wed Aug 10, 2005 6:39 pm
by bruceg
I am getting the following parsing error:

'Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /hsphere/local/home/bruceg/inspired-evolution.com/Loan_Application.php on line 558'

line 558 is this: if ($_POST['op']!='ds') {

that doesn't tell you much so enter code is:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><!-- InstanceBegin template="/Templates/subpage_template.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" --> 
<title>Wealth Development Mortgage :: TEAM</title>
<!-- InstanceEndEditable --> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- InstanceBeginEditable name="head" --> <!-- InstanceEndEditable --> 
<link href="WDM.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="main" > <!-- InstanceBeginEditable name="header" -->
  <div id="header"> 
    <div id="logo"> <img src="/test/images/logo.gif" alt="Wealth Development Mortgage" ></div>
    <div id="slogan"><img src="/test/images/slogan.gif" alt="company slogan" ></div>
    <div id="top_navigation"> 
      <ul id="topnav">
        <li><a href="index.htm">HOME</a></li>
        <li class="border_left"><a href="Contact.htm">CONTACT US</a></li>
        <li class="border_left"><a href="Mortgage_Calculator.htm">MORTGAGE CALCULATOR</a></li>
      </ul>
    </div>
  </div>
  <!-- InstanceEndEditable --> 
  <!-- end header and begin main content information -->
  <!-- InstanceBeginEditable name="mainnav" -->
  <div id="mainnav"> 
    <ul id="navlist">
      <li class="border_right"><a href="/index.htm" title="home link">HOME</a></li>
      <li class="border_right"><a href="Company.htm" title="company information" >COMPANY</a></li>
      <li class="border_right"><a href="Team.htm" title="about the team">TEAM</a></li>
      <li class="border_right"><a href="Contact.htm" title="contact us">CONTACT</a></li>
      <li><a href="Loan_Application.htm" title="fill out our on-line application">APPLY ONLINE</a></li>
    </ul>
  </div>
  <!-- InstanceEndEditable -->
  <!-- flash will go here, image used as placeholder for now -->
  <div id="flash"> 
    <img src="/test/images/flash_image.jpg" alt="for position only">
  </div>
 
 <div id="page_title_bar"> 
   

    <!-- InstanceBeginEditable name="page_header" --><h1>TEAM</h1><!-- InstanceEndEditable -->
  </div>
  <!-- InstanceBeginEditable name="maincontent" -->
  <table class="Loan_Application" title="Secure Loan Application"  cellspacing="0" summary="Full Loan Application for Wealth Development Mortgage Company">
      
  <caption>
  Secure Loan Application 
  </caption>
  <tr>
    <td class="header">Wealth Development Mortgage Company provides fast mortgage approvals online.<br>
      Your Application will be placed in top priority and receive immediate attention.</td>
  </tr>
  <tr> 
    <td>
	<?php
$form_block=<<<END_FORM
<form method="POST" action="{$_SERVER['PHP_SELF']}" class="loan_application">
<fieldset>
       <fieldset>
        <legend title="Loan Information">LOAN INFORMATION</legend>
        
        <table>
          <tr> 
            <td > <table>
                <tr> 
                  <td colspan="2"><label for="loan_purpose" >Loan Purpose:</label> 
                    <br> <select 
                        name="purpose" id="purpose">
                      <option value="Purchase" 
                          selected>Purchase</option>
                      
                      <option
                          value="refinance_no_cash">Refinance - No Cash</option>
                      <option
                          value="refinance_cash_out">Refinance - Cash Out</option>
                      
                      <option value="refinance_debt_consolidation">Refinance - Debt Consolidation</option>
                      <option 
                          value="refinance_change_loan_type">Refinance - Change Loan Type</option>
                      <option value="construction_loan">Construction Loan</option>
                      <option value="other_loan_purpose">Other Loan Purpose</option>
                    </select></td>
                  <td><label for="property_use">Property Use:</label>
                    <br>
					<select class="textbox" 
                        name="property" id="property">
                <option value="">Select One</option>
                <option
                          value="" selected>----------</option>
                <option
                          value="primary_residence">Primary Residence</option>
                <option 
                          value="secondary_residence">Secondary Residence</option>
                <option 
                          value="investment_property">Investment Property</option>
              </select>
                  </td>
                </tr>
                <tr> 
                  <td colspan="2">Loan Type:
                    <br> <select 
                          name="loan_type" id="loan_type">
                      <option value="30_year_fixed" selected>30 Year Fixed</option>
                      <option value="15_year_fixed">15 Year Fixed</option>
					  <option value="10_arm">10/1 ARM</option>
					  <option value="7_arm">7/1 ARM</option>
					  <option value="5_arm">5/1 ARM</option>
					   <option value="3_arm">3/1 ARM</option>
					    <option value="1_arm">1 year ARM</option>
						<option value="6m_arm">6 month ARM</option>
						<option value="option_arm">0ption ARM</option>
						<option value="10_interest">10 year Interest Only</option>
						<option value="5_interest">5 year Interest Only</option>
						<option value="3_interest">3 year Interest Only</option>
						<option value="HELOC">HELOC</option>
                    </select></td>
					<td><label for="property_type">Property Type:</label><br>
					<select class="textbox" name="property_type" id="property_type">
					<option value="single_family_detached">Single Family Detached</option>
					<option value="townhouse">Townhouse</option>
					<option value="condo">Condo</option>
					<option value="multi_unit">Multi Unit</option>
					</select>
					</td>
                  <td><label for="interest_rate">Interest Rate:</label>
                    <br> <select class="textbox" 
                        name="interest_rate" id="interest_rate">
                      <option value="" selected>Select One</option>
                      <option value="">----------</option>
                      <option value="1.000">1.000</option>
                      <option 
                          value="1.125">1.125</option>
                      <option 
                          value="1.250">1.250</option>
                      <option 
                          value="1.375">1.375</option>
                      <option 
                          value="1.500">1.500</option>
                      <option 
                          value="1.625">1.625</option>
                      <option 
                          value="1.750">1.750</option>
                      <option 
                          value="1.875">1.875</option>
                      <option 
                          value="2.000">2.000</option>
                      <option 
                          value="2.125">2.125</option>
                      <option 
                          value="2.250">2.250</option>
                      <option 
                          value="2.375">2.375</option>
                      <option 
                          value="2.500">2.500</option>
                      <option 
                          value="2.625">2.625</option>
                      <option 
                          value="2.750">2.750</option>
                      <option 
                          value="2.875">2.875</option>
                      <option 
                          value="3.000">3.000</option>
                      <option 
                          value="3.125">3.125</option>
                      <option 
                          value="3.250">3.250</option>
                      <option 
                          value="3.375">3.375</option>
                      <option 
                          value="3.500">3.500</option>
                      <option 
                          value="3.625">3.625</option>
                      <option 
                          value="3.750">3.750</option>
                      <option 
                          value="3.875">3.875</option>
                      <option 
                          value="4.000">4.000</option>
                      <option 
                          value="4.125">4.125</option>
                      <option 
                          value="4.250">4.250</option>
                      <option 
                          value="4.375">4.375</option>
                      <option 
                          value="4.500">4.500</option>
                      <option 
                          value="4.625">4.625</option>
                      <option 
                          value="4.750">4.750</option>
                      <option 
                          value="4.875">4.875</option>
                      <option 
                          value="5.000">5.000</option>
                      <option 
                          value="5.125">5.125</option>
                      <option 
                          value="5.250">5.250</option>
                      <option 
                          value="5.375">5.375</option>
                      <option 
                          value="5.500">5.500</option>
                      <option 
                          value="5.625">5.625</option>
                      <option 
                          value="5.750">5.750</option>
                      <option 
                          value="5.875">5.875</option>
                      <option 
                          value="6.000">6.000</option>
                      <option 
                          value="6.125">6.125</option>
                      <option 
                          value="6.250">6.250</option>
                      <option 
                          value="6.375">6.375</option>
                      <option 
                          value="6.500">6.500</option>
                      <option 
                          value="6.625">6.625</option>
                      <option 
                          value="6.750">6.750</option>
                      <option 
                          value="6.875">6.875</option>
                      <option 
                          value="7.000">7.000</option>
                      <option 
                          value="7.125">7.125</option>
                      <option 
                          value="7.250">7.250</option>
                      <option 
                          value="7.375">7.375</option>
                      <option 
                          value="7.500">7.500</option>
                      <option 
                          value="7.625">7.625</option>
                      <option 
                          value="7.750">7.750</option>
                      <option 
                          value="7.875">7.875</option>
                      <option 
                          value="8.000">8.000</option>
                      <option 
                          value="8.125">8.125</option>
                      <option 
                          value="8.250">8.250</option>
                      <option 
                          value="8.375">8.375</option>
                      <option 
                          value="8.500">8.500</option>
                      <option 
                          value="8.625">8.625</option>
                      <option 
                          value="8.750">8.750</option>
                      <option 
                          value="8.875">8.875</option>
                      <option 
                          value="9.000">9.000</option>
                      <option 
                          value="9.125">9.125</option>
                      <option 
                          value="9.250">9.250</option>
                      <option 
                          value="9.375">9.375</option>
                      <option 
                          value="9.500">9.500</option>
                      <option 
                          value="9.625">9.625</option>
                      <option 
                          value="9.750">9.750</option>
                      <option 
                          value="9.875">9.875</option>
                      <option 
                          value="10.000">10.000</option>
                      <option 
                          value="10.125">10.125</option>
                      <option 
                          value="10.250">10.250</option>
                      <option 
                          value="10.375">10.375</option>
                      <option 
                          value="10.500">10.500</option>
                      <option 
                          value="10.625">10.625</option>
                      <option 
                          value="10.750">10.750</option>
                      <option 
                          value="10.875">10.875</option>
                      <option 
                          value="11.000">11.000</option>
                      <option 
                          value="11.125">11.125</option>
                      <option 
                          value="11.250">11.250</option>
                      <option 
                          value="11.375">11.375</option>
                      <option 
                          value="11.500">11.500</option>
                      <option 
                          value="11.625">11.625</option>
                      <option 
                          value="11.750">11.750</option>
                      <option 
                          value="11.875">11.875</option>
                      <option 
                          value="12.000">12.000</option>
                      <option 
                          value="12.125">12.125</option>
                      <option 
                          value="12.250">12.250</option>
                      <option 
                          value="12.375">12.375</option>
                      <option 
                          value="12.500">12.500</option>
                      <option 
                          value="12.625">12.625</option>
                      <option 
                          value="12.750">12.750</option>
                      <option 
                          value="12.875">12.875</option>
                      <option 
                          value="13.000">13.000</option>
                      <option 
                          value="13.125">13.125</option>
                      <option 
                          value="13.250">13.250</option>
                      <option 
                          value="13.375">13.375</option>
                      <option 
                          value="13.500">13.500</option>
                      <option 
                          value="13.625">13.625</option>
                      <option 
                          value="13.750">13.750</option>
                      <option 
                          value="13.875">13.875</option>
                      <option 
                          value="14.000">14.000</option>
                    </select></td>
                </tr>
                <tr> 
                  <td colspan="2">Loan Amount:
                    <br> <input class="textbox" 
                        maxlength="15" size="15" name="loan_amount" id="loan_amount" ></td>
                  <td><label for="property_type">Property Type:</label>
                    <br> <select class="textbox" 
                        name="property_type" id="property_type">
                      <option value="">Select One</option>
                      <option value="" selected>----------</option>
                      <option value="interest_only">Interest Only</option>
                      <option value="option_arm">Option Arm</option>
                    </select></td>
                </tr>
                <tr> 
                  <td colspan="2"><label for="down_payment">Down Payment:</label>
                    <br> <input 
                        class="textbox" maxlength="15" size="15" name="down_payment" id="down_payment" ></td>
                  <td><label for="property_value">Property Value/Purchase Price:</label>
                    <br> <input 
                        class="textbox" maxlength="25" size="25" name="Input" ></td>
                </tr>
                <tr> 
                  <td colspan="2"><label for="property_address">Property Address:</label>
                    <br> <input 
                        class="textbox" maxlength="35" size="35" name="property_address" id="property_address" ></td>
                </tr>
                <tr> 
                  <td colspan="3"><label for="City_State_zip">City, State, Zip 
                    Code:</label>
                    <br> <input 
                        class="textbox" maxlength="25" size="25" name="city" id="city" > 
                    &nbsp; <input 
                        class="textbox" maxlength="10" size="10" name="state" id="state" > 
                    &nbsp; <input 
                        class="textbox" maxlength="10" size="10" 
                  name="zip" id="zip" ></td>
                </tr>
              </table>
              
            </td>
          </tr>
          <tr> 
            <td class="divider" title="borrower information">Borrower</td>
          </tr>
          <tr> 
            <td> <table>
                <tr> 
                  <td><label for="first_name">First Name:</label><br> <input class="textbox" 
                        maxlength="35" size="25" name="first_name" id="first_name" ></td>
                  <td><label for="middle_initial">M.I.:</label><br> <input class="textbox" maxlength="5" 
                        size="5" name="middle_initial" id="middle_initial" ></td>
                  <td><label for="last_name">Last Name:</label><br> <input class="textbox" 
                        maxlength="35" size="25" name="last_name" id="last_name" ></td>
                </tr>
                <tr> 
                  
                  <td><label for="marital_status">Marital Status:</label><br> <select class="textbox" 
                        name="marital_status" id="marital_status">
                      <option value="">Select One</option>
                      <option 
                          value="" selected>----------</option>
                      <option 
                          value="M">Married</option>
                      <option 
                          value="U">Unmarried</option>
                      <option 
                          value="S">Separated</option>
                    </select></td>
                </tr>
                <tr> 
                  <td colspan="2"><label for="home_phone_number">Home Phone Number:</label><br> <input 
                        class="textbox" maxlength="6" size="6" name="home_phone_number" id="home_phone_number" > &nbsp; 
                    <input 
                        class="textbox" maxlength="6" size="6" name="home_phone_number1" id="home_phone_number2" > &nbsp; 
                    <input 
                        class="textbox" maxlength="10" size="10" name="home_phone_number2" id="home_phone_number2" > &nbsp; 
                  </td>
                  <td><label for="email_address">Email Address:</label><br> <input class="textbox" 
                        maxlength="100" size="25" name="email" id="email" > </td>
                </tr>
                <tr> 
                  <td><label for="income">Income:</label><br> <input class="textbox" 
                        maxlength="10" size="10" name="income" id="income" ></td>
                  <td><label for="assets">Assets:</label><br> <input class="textbox" 
                        maxlength="10" size="10" name="assets" id="assets" ></td>
						
                </tr>
				<tr>
				<td><label for="savings">Savings:</label><br> <input class="textbox" 
                        maxlength="10" size="10" name="savings" id="savings" ></td>
						<td><label for="checking">Checking:</label><br> <input class="textbox" 
                        maxlength="10" size="10" name="checking" id="checking"></td>
						<td><label for="stocks">Stocks:</label><br> <input class="textbox" 
                        maxlength="10" size="10" name="stocks" id="stocks" ></td>
				</tr>
                <tr> 
                  <td colspan="2"><label for="date_of_birth">Date of Birth: <strong><small>Please use (MM/DD/YYYY) format</small></strong></label><br> 
                    <input class="textbox" maxlength="5" 
                        size="5" name="dob1" id="date_of_birth">
                    
                    <input class="textbox" maxlength="5" 
                        size="5" name="dob2" id="date_of_birth2" >
                     
                    <input class="textbox" maxlength="10" 
                        size="10" name="dob3" id="date_of_birth3" ></td>
                  
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td class="divider" title="co-borrower information">Co-Borrower</td>
          </tr>
          <tr> 
            <td> <table>
                <tr> 
                  <td><label for="first_name2">First Name:</label><br> <input class="textbox" 
                        maxlength="35" size="25" name="co_first_name" id="first_name2"></td>
                  <td><label for="middle_initial2">M.I.:</label><br> <input class="textbox" maxlength="5" 
                        size="5" name="co_middle_initial" id="middle_initial2" ></td>
                  <td><label for="last_name2">Last Name:</label><br> <input class="textbox" 
                        maxlength="35" size="25" name="co_last_name" id="last_name2" ></td>
                </tr>
                <tr> 
                  
                  <td><label for="marital_status2">Marital Status:</label><br> <select class="textbox" 
                        name="co_marital_status" id="marital_status2">
                      <option value="">Select One</option>
                      <option 
                          value="" selected>----------</option>
                      <option 
                          value="M">Married</option>
                      <option 
                          value="U">Unmarried</option>
                      <option 
                          value="S">Separated</option>
                    </select></td>
                </tr>
                <tr> 
                  <td colspan="2"><label for="home_phone_number2">Home Phone Number:</label><br> <input 
                        class="textbox" maxlength="6" size="6" name="co_phone1" id="home_phone_number2" > &nbsp; 
                    <input 
                        class="textbox" maxlength="6" size="6" name="co_phone2" id="co_phone2" > &nbsp; 
                    <input 
                        class="textbox" maxlength="10" size="10" name="co_phone3" id="co_phone3" > &nbsp; 
                  </td>
                  <td><label for="email_address2">Email Address:</label><br> <input class="textbox" 
                        maxlength="100" size="25" name="co_email" id="email2" > </td>
                </tr>
                <tr> 
                  <td><label for="income2">Income:</label><br> <input class="textbox" 
                        maxlength="10" size="10" name="co_income" id="income2" ></td>
                  <td><label for="assets2">Assets:</label><br> <input class="textbox" 
                        maxlength="10" size="10" name="co_assets" id="assets2" ></td>
						
                </tr>
				<tr>
				<td><label for="savings2">Savings:</label><br> <input class="textbox" 
                        maxlength="10" size="10" name="savings" id="checking2" ></td>
						<td><label for="checking2">Checking:</label><br> <input class="textbox" 
                        maxlength="10" size="10" name="co_checking" id="checking2" ></td>
						<td><label for="stocks2">Stocks:</label><br> <input class="textbox" 
                        maxlength="10" size="10" name="co_stocks" id="stocks2" ></td>
				</tr>
                <tr> 
                  <td colspan="2"><label for="date_of_birth2">Date of Birth: <strong><small>Please use (MM/DD/YYYY) format</small></strong></label><br> 
                    <input class="textbox" maxlength="5" 
                        size="5" name="co_dob1" >
                    
                    <input class="textbox" maxlength="5" 
                        size="5" name="co_dob2" >
                    
                    <input class="textbox" maxlength="10" 
                        size="10" name="co_dob3" ></td>
                  
                </tr>
				<tr>
<td>
<input type="hidden" name="op" value="ds" />
</td>
</tr>
              </table></td>
			  </fieldset>
          </tr>
                <tr> 
            <td colspan="3" align="right"><input src="/images/Form_Submit.gif" alt="Submit" type="image" name="submit"  > </td>
          </tr>
		  </table>
          </tr>
		  <tr> 
            <td align="right">Please press submit button only once.</td>
          </tr>
          <tr> 
            <td class="bottom">Once you have completed this expression of interest (or application) 
              your information will be sent to Wealth Development Mortgage. All non-public information 
              you provide will be&nbsp;protected and owned by Wealth Development 
              Mortgage. A representative from the company may contact you by telephone.&nbsp; 
              By submitting your expression of interest you are consenting to 
              receive telephone calls from the company.</td>
          </tr>
        </form>
		 END_FORM;
		 ?>
		 </table>
		 
		 </td>
		 </tr>
		 		  
		 </table>
		 
              </td>
			  </tr>
			  </table>
			  <?php
if ($_POST['op']!='ds') { 
// they need to see the form
echo "$form_block";
} else if ($_POST["op"]  == "ds")  {

//Function saves time and space by eliminating unneccesary code
function check($fieldname)
	{
	global $err_msg;
	if($_POST[$fieldname] == "")
		{ 
		if ( !isset($err_msg)) { $err_msg = "<span class='red'>You haven't entered your ".$fieldname."!</span><br />"; }
		elseif ( isset($err_msg)) { $err_msg .="\n<span class='red'>You haven't entered your ".$fieldname."!</span><br />"; }
		}
	return $err_msg;
	}

//////////////////////////
///Function execution/////
//////////////////////////

check('purpose');
check('property');
check('loan_type');
check('interest_rate');
check('loan_amount');
check('property_type');
check('property_address');
check('city');
check('state');
check('zip');  
check('first_name');  
check('middle_initial');  
check('last_name');
check('marital_status');
check('home_phone_number');   
check('home_phone_number2'); 
check('home_phone_number3'); 
check('email'); 
check('income'); 
check('assets'); 
check('savings'); 
check('checking'); 
check('stocks'); 
check('dob1'); 
check('dob2'); 
check('dob3'); 

if (isset($err_msg) || isset($email_err)) { echo $err_msg.$email_err."\n\n".$form_block; }
else {
  //it's ok to send, so build the mail
        $msg = "E-mail sent from http://www.wealthdevelopmentmanagement.com\n";
        $msg .="Purpose of Loan:        {$_POST['purpose']}\n";
        $msg .="Loan Property:        {$_POST['property']}\n";
        $msg .="Loan Type:        {$_POST['loan_type']}\n";
        $msg .="Interest Rate:        {$_POST['interest_rate']}\n";
        $msg .="Loan amount requested:        {$_POST['loan_amount']}\n";
        $msg .="Property Type:        {$_POST['property_type']}\n";
        $msg .="Property Address :        {$_POST['property_address']}\n";
        $msg .="City of applicant: {$_POST['city']}\n";
        $msg .="State of applicant : {$_POST['state']}\n";
        $msg .="Zip code of applicant:        {$_POST['zip']}\n";
		$msg .="First name of applicant : {$_POST['first_name']}\n";
		$msg .="Last name of applicant : {$_POST['last_name']}\n";
		$msg .="Marital Status of applicant : {$_POST['marital_status']}\n";
		$msg .="Home phone number of applicant (area code) : {$_POST['home_phone_number']}\n";
		$msg .="Home phone number of applicant (3 digit exchange) : {$_POST['home_phone_number2']}\n";
		$msg .="Home phone number of applicant: (last four digits) {$_POST['home_phone_number3']}\n";
		$msg .="email address of applicant : {$_POST['email']}\n";
		$msg .="Applicants income : {$_POST['income']}\n";
		$msg .="Applicants assets : {$_POST['assets']}\n";
		$msg .="Amount in Savings account : {$_POST['savings']}\n";
		$msg .="Amount in Checking account : {$_POST['checking']}\n";
		$msg .="Amount in Stocks: {$_POST['stocks']}\n";
		$msg .="Applicants date of birth (month): {$_POST['dob1']}\n";
		$msg .="Applicants date of birth (day): {$_POST['dob2']}\n";
		$msg .="Applicants date of birth (year): {$_POST['dob3']}\n\n";
        $to ="webguync@gmail.com";
        $subject ="You have received an on-line loan application";
        $mailheaders ="From: wealthdevelopmentmortgage.com
        <http://www.wealthdevelopmentmanagement.com>\n";
        $mailheaders .="Reply-To: {$_POST['email']}\n";
        //send the mail
        mail ($to, $subject, $msg, $mailheaders);
        //display information to user
  echo "<p>We have received your loan application and are will begin the process immediately.  </p>";
}

}
?>
	</div>
	</div>
  </div>
  <!-- InstanceEndEditable -->
<div id="footer"> 
    <ul id="bottomnav">
      <li><a href="file:///C|/Documents%20and%20Settings/Administrator/My%20Documents/WDM/Templates/company.html">Company</a></li>
      <li class="border_left"><a href="file:///C|/Documents%20and%20Settings/Administrator/My%20Documents/WDM/Templates/team.html">Team</a></li>
      <li class="border_left"><a href="file:///C|/Documents%20and%20Settings/Administrator/My%20Documents/WDM/Templates/contact.html">Contact</a></li>
      <li class="border_left"><a href="file:///C|/Documents%20and%20Settings/Administrator/My%20Documents/WDM/Templates/services.html">Services</a></li>
      <li class="border_left"><a href="file:///C|/Documents%20and%20Settings/Administrator/My%20Documents/WDM/Templates/testimonials.html">Testimonials</a></li>
    </ul>
    <p>2005 All rights reserved. Wealth Development Mortgage | 1234 Street | Raleigh 
      NC 11111</p>
  </div>
</div>
</body>
<!-- InstanceEnd --></html>
I would appreciate any thing anyone can spot.

Posted: Wed Aug 10, 2005 6:42 pm
by John Cartwright
Post lines 550 to 570

Posted: Wed Aug 10, 2005 6:48 pm
by bruceg
it would have to be somwhere in this block of code:

Code: Select all

END_FORM;
		 ?>
		 </table>
		 
		 </td>
		 </tr>
		 		  
		 </table>
		 
              </td>
			  </tr>
			  </table>
			  <?php
if ($_POST['op']!='ds') { 
// they need to see the form
echo "$form_block";
} else if ($_POST["op"]  == "ds")  {

//Function saves time and space by eliminating unneccesary code
function check($fieldname)
	{
	global $err_msg;
	if($_POST[$fieldname] == "")
		{ 
		if ( !isset($err_msg)) { $err_msg = "<span class='red'>You haven't entered your ".$fieldname."!</span><br />"; }
		elseif ( isset($err_msg)) { $err_msg .="\n<span class='red'>You haven't entered your ".$fieldname."!</span><br />"; }
		}
	return $err_msg;
	}

Posted: Wed Aug 10, 2005 7:18 pm
by feyd
your heredoc is malformed. The ending keyword you use must be the first thing on the line (no whitespace either)

Posted: Wed Aug 10, 2005 7:39 pm
by bruceg
you mean this line of code?

<?php
$form_block=<<<END_FORM

or if another line please provide details.

thanks a bunch!!!

Posted: Wed Aug 10, 2005 7:40 pm
by feyd
line 550.

Posted: Wed Aug 10, 2005 8:17 pm
by bruceg
for some reason, I don't see the line numbers in the code I posted and I am at home,so don't have a program to display line numbers so. could you please display the erroneous line, please?

thanks!

Posted: Wed Aug 10, 2005 8:44 pm
by feyd
compare jcart's post, and your response.

Posted: Wed Aug 10, 2005 9:49 pm
by bruceg
ahhh, I get it now, thx.