hi there guys,
I'm playing with some anti-spam stuff, and I'm trying to do the following:
I want to generate a random value(done). Then I want the value to be passed to another page. That page checks to make sure that the value is set, and if it isn't, it doesn't allow the form to go through.
I know that I could put it in the form, but it seems to allow for too much manipulation.
I also know that I could start a session and pass it that way, but that also seems overkill for something so simple.
I have tried:
if(!ISSET($_POST['foo'])){
but of course that didn't work, as it's not in the form.
if(!ISSET($foo)){
but I suspect that globals being off defeats this method.
I know that I am probably missing a very obvious method, but could someone tell me how I get the value for $foo to pass from form.php to submit.php?
Any help would be greatly appreciated!
thanks,
json