Jump to content

Parse Error help


NickG21

Recommended Posts

hey everyone i am getting an error, unexpected $ on the last line of my code.  I am sure the problem lies inside this chunk below because when this chunk is not present the code runs fine, can anyone find my syntax error, i can't seem to.

[code]<?php if ($wizard->getStepName() == 'ContInfo') { ?>
          <table>
            <tr>
              <td>Organization Name:</td>
              <td>
                <input type="text" name="Company" value="<?= htmlSpecialChars($wizard->getValue('Company')) ?>" />
              </td>
              <td>
                <?php if ($wizard->isError('Company')) { ?>
                  <?= $wizard->getError('Company') ?>
                <?php } ?>
              </td>
            </tr>
            <tr>
              <td>Contact Person:</td>
              <td>
                <input type="text" name="ContactPerson" value="<?= htmlSpecialChars($wizard->getValue('ContactPerson')) ?>" />
              </td>
              <td>
                <?php if ($wizard->isError('ContactPerson')) { ?>
                  <?= $wizard->getError('ContactPerson') ?>
                <?php } ?>
              </td>
            </tr>
            <tr>
              <td>E-Mail Address:</td>
              <td>
                <input type="text" name="ContEmail" value="<?= htmlSpecialChars($wizard->getValue('ContEmail')) ?>" />
              </td>
              <td>
                <?php if ($wizard->isError('ContEmail')) { ?>
                  <?= $wizard->getError('ContEmail') ?>
                <?php } ?>
              </td>
              <tr>
              <td>Address:</td>
              <td>
                <input type="text" name="Address" value="<?= htmlSpecialChars($wizard->getValue('Address')) ?>" />
              </td>
              <td>
                <?php if ($wizard->isError('Address')) { ?>
                  <?= $wizard->getError('Address') ?>
                <?php } ?>
              </td>
</tr>
<tr>
<td>City:</td>
              <td>
                <input type="text" name="City" value="<?= htmlSpecialChars($wizard->getValue('City')) ?>" />
              </td>
              <td>
                <?php if ($wizard->isError('City')) { ?>
                  <?= $wizard->getError('City') ?>
                <?php } ?>
              </td>
</tr>
<tr>
<td>Zip:</td>
              <td>
                <input type="text" name="Zip" value="<?= htmlSpecialChars($wizard->getValue('Zip')) ?>" />
              </td>
              <td>
                <?php if ($wizard->isError('Zip')) { ?>
                  <?= $wizard->getError('Zip') ?>
                <?php } ?>
              </td>
</tr>
<tr>
<td>Zip:</td>
              <td>
                <input type="text" name="Phone" value="<?= htmlSpecialChars($wizard->getValue('Phone')) ?>" />
              </td>
              <td>
                <?php if ($wizard->isError('Phone')) { ?>
                  <?= $wizard->getError('Phone') ?>
                <?php } ?>
              </td>
</tr>
<tr>
<td>Zip:</td>
              <td>
                <input type="text" name="Fax" value="<?= htmlSpecialChars($wizard->getValue('Fax')) ?>" />
              </td>
              <td>
                <?php if ($wizard->isError('Fax')) { ?>
                  <?= $wizard->getError('Fax') ?>
                <?php } ?>
              </td>
</tr>
          </table>[/code]
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.