Basically you need to validate the data being send to the script. You can find a bunch of free validaters for text, email, phone numbers, ip etc...