Author Topic: parse error ... on line 150  (Read 3748 times)

DBestViper

  • Regular Member
  • **
  • Posts: 36
  • Karma: 0
    • View Profile
parse error ... on line 150
« on: April 29, 2004, 11:17:38 AM »
I am sure it is somthing simple that I am just overlooking.  I am getting a phase error at line 150.  I know this is alot of code, but I posted the entire if statment to be sure, but the code posted starts at line 83 and ends with line 151.

Code: [Select]
if ($FormType == "Purchase")
{
echo "<tr align='center' valign='middle' bgcolor='#999999'>
      <td align='left'><b>$i. What type of Loan are you looking for?</b></td>
      <td colspan='2'><select size='1' name='FLoanTypeW'>
<option selected value='1'>Unknown</option>
<option value='2'>Conventional</option>
<option value='3'>FHA</option>
<option value='4'>VA</option>
<option value='5'>Non Conf</option>
</select></td>
    </tr>";
$i=$i+1;
echo "<tr align='center' valign='middle' bgcolor='#999999'>
      <td align='left'><b>$i. What Loan Term are you looking for?</b></td>
      <td colspan='2'><input type='radio' value='30' checked name='FTerm'>30
Years<input type='radio' name='FTerm' value='15'>15 Years<input type='radio' name='FTerm' value='Other'><input type='text' name='FTermOther' size='4'>Years</td>
    </tr>";
$i=$i+1;
echo "<tr align='center' valign='middle' bgcolor='#999999'>
      <td align='left'><b>$i. What Type of Rate are you looking
for?</b></td>
      <td colspan='2'><input type='radio' name='FRateType' value='1' checked>Open<input type='radio' name='FRateType' value='2'>Fixed
<input type='radio' name='FRateType' value='3'>Adjustable<input type='radio' name='FRateType' value='4'>Int.
Only</td>
    </tr>";
$i=$i+1;
echo "<tr align='center' valign='middle' bgcolor='#999999'>
      <td align='left'><b>$i. Are you currently under contract to purchase your
home?</b></td>
      <td><input type='radio' name='FPurContract' value='1'>Yes<input type='radio' name='FPurContract' value='2' checked>No</td>
      <td><b>Closing Date:</b><input type='text' name='FPurClosingDate' size='12'>
<br>
<b>Purchase Price:</b> $<input type='text' name='FPurPrice' size='15'>
<br>
<b>Down Payment: </b>
<input type='text' name='FPurDownPayment' size='11'><br>
<b>Source:</b>
<input type='radio' name='FPurPaymentSource' value='1' checked>Savings
<input type='radio' name='FPurPaymentSource' value='2'>Checking
<input type='radio' name='FPurPaymentSource' value='3'>Gift</td>
    </tr>";
$i=$i+1;

echo "
<tr align='center' valign='middle' bgcolor='#999999'>
      <td align='left' rowspan='2'><b>$i. What is the location of the property?</b></td>
      <td><b>Street Address:</b></td>
      <td><input type='text' name='FPurPropertyAdd' size='20'></td>
    </tr>
    <tr align='center' valign='middle' bgcolor='#999999'>
      <td><b>City, State, Zip:</b></td>
      <td><input type='text' name='FPurPropAddCity' size='13'><input type='text' name='FPurPropAddSt' size='3'><input type='text' name='FPurPropAddZip' size='6'></td>
    </tr>";
$i=$i+1;

echo "
    <tr align='center' valign='middle' bgcolor='#999999'>
      <td align='left'><b>$i. What is the Realtor's information.</b></td>
      <td><input type='checkbox' name='FPurRealtor' value='2'>No Realtor </td>
      <td><b>Name:</b> <input type='text' name='FPurRealtorName' size='20'><br>
<b>Phone:</b> <input type='text' name='FPurRealtorPhone' size='20'></td>
    </tr>";
$i=$i+1;
}


  Thanks
Thank You,
Bobby C. Fisher

carella

  • Senior Member
  • ****
  • Posts: 115
  • Karma: 0
    • View Profile
(No subject)
« Reply #1 on: April 29, 2004, 12:01:16 PM »
Hi,

Do you have lots of other code? If the parse error is pointing to your very last line of code, then chances are its a missing brace. Check to make sure all your opening and closing braces are in place.
:)

DBestViper

  • Regular Member
  • **
  • Posts: 36
  • Karma: 0
    • View Profile
(No subject)
« Reply #2 on: April 29, 2004, 12:32:56 PM »
Thanks, I tried that already though.  I even printed it out and used a highlighter to ensure  that they were all closed.  There is more code after that.  It is 524 lines.  So somthing tells me that it is around the line indicated, but I can't find it.  At first I thought I just used a " in one of the echo statments, but couldn't find that either.
Thank You,
Bobby C. Fisher

carella

  • Senior Member
  • ****
  • Posts: 115
  • Karma: 0
    • View Profile
(No subject)
« Reply #3 on: April 29, 2004, 12:52:25 PM »
Could it be the apostrophe in "Realtor's"?

DBestViper

  • Regular Member
  • **
  • Posts: 36
  • Karma: 0
    • View Profile
(No subject)
« Reply #4 on: April 29, 2004, 12:55:41 PM »
Didn't think it would make a diffrence, but I tried it anyway.  Didn't help.  Same error same line.  Thanks
Thank You,
Bobby C. Fisher

carella

  • Senior Member
  • ****
  • Posts: 115
  • Karma: 0
    • View Profile
(No subject)
« Reply #5 on: April 29, 2004, 12:56:57 PM »
Well I have copied and pasted your if statement and uploaded it my own server and no parse error is shown. So, its a problem with another part of your code.

DBestViper

  • Regular Member
  • **
  • Posts: 36
  • Karma: 0
    • View Profile
(No subject)
« Reply #6 on: April 29, 2004, 01:16:16 PM »
Well I would hate to paste the whole code, becouse it is long, but If I do would you mind looking at it?
Thank You,
Bobby C. Fisher

DBestViper

  • Regular Member
  • **
  • Posts: 36
  • Karma: 0
    • View Profile
(No subject)
« Reply #7 on: April 29, 2004, 01:21:51 PM »
Thanks, but I found it.  I knew it was somthing stupid.  About two more lines down I was missing an echo statment.  Just started right up with the html tags.

 Thanks again
Thank You,
Bobby C. Fisher

carella

  • Senior Member
  • ****
  • Posts: 115
  • Karma: 0
    • View Profile
(No subject)
« Reply #8 on: April 29, 2004, 03:04:00 PM »
Glad you found the problem. :)

drewbee

  • Regular Member
  • **
  • Posts: 38
  • Karma: 0
    • View Profile
(No subject)
« Reply #9 on: May 03, 2004, 09:17:15 AM »
hehe that is something that gets me sometimes... as well as forgettnig "; or another one of my big ones is forgetting the ending bracket ] in variables that have been split into arrays... :-)
Rather then be like most men who want the world to know them; I want to know the world.