OK, I have this script that I'm writing up for some friends for a political thing in Vermont. The purpose of it is to enter your zip code and then you get a mailform to send an e-mail to the representatives for your area. I had it working just beautifully yesterday with only 3 zip codes to test it, but then when I added the full 230+ zip codes, it's now not recognizing any of the zips I enter as being valid.
here's a snippet of the code:
Now everything I enter is giving me "The zip code you entered is not valid" The thing is that this script, exactly as it is, worked only a day earlier! Does anyone here have any idea why it is that for some reason it's not recognizing any of the zip codes?Code:if ($zip == 05031) { @include('includes/05031.php'); } elseif ($zip == 05032) { @include('includes/05032.php'); } elseif ($zip == 05033) { @include('includes/05033.php'); } elseif ($zip == 05034) { @include('includes/05034.php'); } (it goes on like that for quite a long time) else { echo "The zip code you entered is not valid"; }


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks