Hello everyone,
I'm hoping someone can help me before I pull all my hair out..... I have a zipcodelocator script and all works fine when it succesfully calls up a zipcode listing that I have listed in my database. The problem I'm having is when I enter a zipcode that is not within my 50mile radius the error message does not show within my table like the successful results do. Here is the code for that is within my page that has to do with that portion
if (!$zipArray)
{
echo "There are no CDM Centers within $radius nautical miles from this zipcode: $zipOne.";
exit;
Is there anyway if there are no zips withing my area that I can make it redirect to another page within my directory? If possible I would like to have it ridrect to another page that I can design myself stating there are no centers within 50miles..somewhat of a default page.
Thanks for any help
Mario