I am trying to implement a simple CAPTCHA on my web site.
It works as I intend on localhost (Apache server on my laptop), but $_POST[‘human’] appears to reach test.php as an empty string (MD5=d41d8cd98f00b204e9800998ecf8427e) when I upload the same files to my web server.
The CAPTCHA image is of a random number; the number is stored as an MD5 string for comparison as $_SESSION[‘randomnum’]. This bit seems to work properly, and test.php picks up this number (and, hence, MD5 string) correctly.
Any ideas? (This has flummoxed me for a day and a half! :D) I have double-checked that files on the web server are latest versions and are in the correct directories.
The form HTML:
[code]
test.php:
[php]
[/php]