Posted by Ben Holness on 05/20/06 15:44
On Sat, 20 May 2006 11:47:32 +0200, John Olav wrote:
> Ok, I'm a real newbie. Just wonder how to validate one specific input field
> in a form processing script against a written variable in a form processing
> script. Just as a security measure against spam. Any idea with code?
in the form processing part;
$variable="Valid value";
if ($_REQUEST['fieldname']!=$variable)
{
// the value of fieldname does not match variable.
// Handle error here
}
else
{
// Continue processing form
}
Navigation:
[Reply to this message]
|