Quote:
Originally Posted by ThomasP
Disclaimer: It has been a while since I've wrote any PHP so I can't guarantee any of that PHP code will work.
|
The code looks good so far, but I found an error in the second block of code. The changes I made are added in red:
Code:
...
<input type="submit">
<?
} else if($_POST['Bot'] == "No" || $_POST['HumanTest'] == "13" || strtolower($_POST['HumanTest'] == "thirteen")) {
echo 'Hi ' . $_POST['name'] . '!'
} else {
?>
Name: <input type="text" name="name">
...
This change fixes the single equals sign operator error, as well as added in a strtolower() command, so that if the user inputs Thirteen or tHirTeeN you know they still had the right answer.