Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
6 + 7 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

Re: captcha with catads 1.4
by deka87 on 2009/10/29 5:59:49

ended up getting rid of it. please let me know if you come up with something
Re: captcha with catads 1.4
by pablo103 on 2009/10/29 0:58:48

Did you solve it somehow?
Re: captcha with catads 1.4
by deka87 on 2009/10/6 8:00:18

hmm so it requires some more hacking right or is there any done solution?
Re: captcha with catads 1.4
by ghia on 2009/10/6 7:47:28

It is entirely how the functionality is implemented in the module.
Many modules (eg also Formulaire) do the following after the user has submitted the form:
- check permissions
- check captcha
- check data
- save data
If the check captcha fails, the entered data is discarded and the user is redirected to the general starting point of the module. All entered data is discarded, which is a severe punishment for the user, if the filled in form is large.

Other modules as eg Contact Us use a form object (= some data container), which contains all data of the form and then do the following:
- create an empty form object.
- show the form with the form object data.
- user fills in and do a submit.
- check permissions
- copy data entered to form object.
- check captcha
- check data
- save data
In this case there is always a form object updated with the user last edits, that is used to iniate the values for the form. If the captcha check fails the form is regenerated with the updated form object, and all answers are present again.

The data check are checks by PHP, to see if some enterences are coherent with each other and are not the Javascript checks, that are done at the user side in his browser to check if the obliged fields are not empty and generate a popup alert, that some fields input are missing. The latter have no influence on the partial filled in form, because it is not yet submitted.

An other way could be that the captcha code was sent as an hidden field as MD5 encoded. In that way the Captcha verification could also be done on the User side with Javascript with a verification function that alerts the user for a wrong captcha without submitting the form and thus also not loosing his work on the form.

This might be the simpliest and in general the most applicable method, because implementing a form object requires some turn upside down programming in the module and is rather tedious.
Re: captcha with catads 1.4
by deka87 on 2009/10/6 5:17:03

Quote:
But in both my ideas I think the entered data will be lost.


yea thats the main trouble. i've never seen a website where you can loose all the data entered by entering the wrong captcha. i'd really hate it. maybe i can do something with the registration form cos its captcha does alright

Who's Online

306 user(s) are online (153 user(s) are browsing Support Forums)


Members: 0


Guests: 306


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits