Thanks for taking the time to look at my problem and I've tried your suggestions but still seem to get the same result, my index.php page where the "enter your zip" field is works fine when a zipcode that I have in my mysql database matches what you enter, the results are displayed in the "phpGooglelocator.php" file without the structure of my website getting out of whack.
I've tried the suggestions but get the same result in regards to the "exit;" function that terminates the script when an error occurs. Is there anyway to fix this? What I'm trying to accomplish here is I have list of members that are located throughout the US and want to make a locator on mywebsite..I'll enter the list in my database, if a visitor comes to my website and enters their zipcode (say in california) it will display the results for California or within the range of your zipcode.
I hope someone can help, seems like I've got it to work somewhat except for the results i get when it can not find a zipcode, the error message in my webpage messes everything up.
thanks,
Mario