NickG21 Posted January 12, 2007 Share Posted January 12, 2007 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 More sharing options...
Recommended Posts