Simple quest but difficult enough

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Olav

    Simple quest but difficult enough

    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?


  • tim

    #2
    Re: Simple quest but difficult enough


    John Olav wrote:[color=blue]
    > 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?[/color]

    Search for captcha on google or
    http://en.wikipedia.org/wiki/Captcha#PHP has a choice of captcha
    scripts which can be used freely

    Tim

    Comment

    • Ben Holness

      #3
      Re: Simple quest but difficult enough

      On Sat, 20 May 2006 11:47:32 +0200, John Olav wrote:
      [color=blue]
      > 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?[/color]

      in the form processing part;

      $variable="Vali d value";
      if ($_REQUEST['fieldname']!=$variable)
      {
      // the value of fieldname does not match variable.
      // Handle error here
      }
      else
      {
      // Continue processing form
      }

      Comment

      Working...