Hackers will try submitting harmful data to your web server, hoping it will reveal or create a security vulnerability they can exploit. There are different types of "bad data" that can be sunmitted. Types of bad data attacks include Code Injection, SQL Injection, and Buffer Overflows, to name a few.
Data Validation and Data Cleansing are two major methods of Secure PHP Programming to defend against attacks using bad data.