Jump to content

form captcha help


slashpine

Recommended Posts

I have added a captcha function into a formmail script...I think I am close to getting it all to work..I just need one more bug worked out...

 

can someone tell me the correct syntax to send the data in the form to the formmail script?

i.e., How do I tell it to POST/Submit itself....if the "if" statement is true (captcha code correct)

 

thanks

Link to comment
Share on other sites

Sounds like you're going about this the wrong way. You should have the form be submitted, along with the user's attempt at the captcha. The first thing you then do when the form has been submitted is to check the captcha is correct. Assuming it is, you continue to process the rest of the form. If it's not, you stop processing the form and return the user to the form - preferably with the fields filled in with what the user provided (except the captcha - generate a new one).

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.