How do I make a post have multiple answers? And it would also be helpful if I could figure out how to make it non-caps sensitive.
Here is an example:
$a = "What is the color of the sky?"
if($_POST['ans'] == "blue") {
echo "Correct!";
}
form:
<form method="POST" action="">
<input type="text" name="ans" /><br />
<input type="submit" />
</form>
I have tried
if($_POST['ans'] == "blue" . "Blue") {
echo "Correct!";
}
And
if($_POST['ans'] == "blue" or "Blue") {
echo "Correct!";
}