I am calling a form from within another page. Do I really need recaptcha? I have a test for a hidden field that resets the form if it is filled out.
Thanks
there's no yes or no answer to this, there are circumstances in which captcha's are a bad idea.
NogDog, empty fields response.
Could I change your response to:
foreach($_POST as $key => $row) { $row = trim($row); if($row == '') { $message .= "I\'m sorry, but ". $row. " is empty." \n"; header("Location: something.php?msg=$err"); exit(); } }
f($row == '') should be f($row == ''")
Thanks for the response, the reason I was asking because I keep get white something error and my public key shows in the form.
the $message line should be:
$message .= "I\'m sorry, but ". $row. " is empty \n";
however --
message would never be seen as you are redirected before its displayed; and if you did not use header you want $key not $row in the message as $row would be blank
Something like this or would I still need $key?
foreach($_POST as $key => $row) { $row = trim($row); if($row == '') { $err .= urlencode("I\'m sorry, but ". $row. " is empty. \n"); header("Location: something.php?msg=$err"); exit(); } }
You're checking if $row is empty, if it is you create the error message, therefore displaying the value of $row makes no sense, as it has to be empty to be displayed as part of the error message.
Perhaps you meant to use $key instead of $row in that message?