What are common issues when setting up a contact form in PHP?

One common issue when setting up a contact form in PHP is ensuring that the form data is properly sanitized to prevent SQL injection attacks. To solve this issue, you can use PHP's `filter_input` function to sanitize the input data before processing it.

$name = filter_input(INPUT_POST, 'name', FILTER_SANITIZE_STRING);
$email = filter_input(INPUT_POST, 'email', FILTER_SANITIZE_EMAIL);
$message = filter_input(INPUT_POST, 'message', FILTER_SANITIZE_STRING);