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
https://forums.phpfreaks.com/topic/125494-form-captcha-help/
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
https://forums.phpfreaks.com/topic/125494-form-captcha-help/#findComment-648786
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.