This is the PHP code and I want to check if an invalid value is present:
$response = $_POST['response'];
$visibility = $_POST['visibility'];
if($response == NULL || $visibility == NULL ){
printf("Invalid input: %s\n", mysqli_connect_error());
echo "<br/><a href='myevents.php'>Back to previous page</a>";
exit();
}
$response and $visibility should be the integer value
so If people put the string value I want to go to the if($response == NULL || $visibility == NULL ) statement.
How to write the statement $response == ???