You need to
really validate your data.
For example, to see if the data was sent back at all, use
isset($_POST['whatever']).
However, you may also wish to reject empty items, and there are other things for witch you wish to validate.
Check
Here[
^] and the links contained therein.
Ideally, you'd want to validate before the trip to the server - I normally do - and for this you may wish to consider javaScript:
http://www.w3schools.com/jsref/event_onsubmit.asp[
^] and pre-handle the contents of your <form> (if your data's coming from a <form>!)