The following code generates a parser error at line 19, the first "endif" statement.
I'm hoping some fresh eyes can help me out here,
Thanks,
PAS
<HEAD>
<TITLE>Zip Code Checker</TITLE>
</HEAD>
<BODY>
<?php
if(isset($submit));
$zip = trim($zip);
$zip_length = strlen($zip);
$zip_test = substr($zip, -5, 1);
if(($zip_length > '5' && $zip_test != '-') || ($zip_length < '5')):
?>
<P>That does not appear to be a valid ZIP or ZIP+4 Zip code.
<P>Zip codes should be in the format of "12345" or "12345-6789".
<?
else:
print("Thanks. That is a proper ZIP code.");
endif;
else:
?>
<FORM action="zip_checker.php" method="POST"> Please enter your ZIP code:
<INPUT type="text" name="zip" size="10" maxlength="10">
<INPUT type="submit" name="submit" value="Submit">
</FORM>
<?
endif;
?>
</BODY>