Forums

Email address field incorrectly populated when captcha fails

mplanigale 24 Feb, 2014
I have a form containing multiple fields including an email field and a captcha

When Captcha is completed incorrectly the validation fails and form reloads as expected.

The form fields are correctly populated except for the email field which is filled with this string:

<script type='text/javascript'> <!-- var prefix = 'ma' + 'il' + 'to'; var path = 'hr' + 'ef' + '='; var addy69731 = 'testemail' + '@'; addy69731 = addy69731 + 'example' + '.' + 'com'; document.write('<a ' + path + '\'' + prefix + ':' + addy69731 + '\'>'); document.write(addy69731); document.write('<\/a>'); //-->\n </script><script type='text/javascript'> <!-- document.write('<span style=\'display: none;\'>'); //--> </script>This email address is being protected from spambots. You need JavaScript enabled to view it. <script type='text/javascript'> <!-- document.write('</'); document.write('span>'); //--> </script>

in this example the email address that was present in the field before validation was testemail@example.com
mplanigale 24 Feb, 2014
Great, problem solved.

Thank you.

Cheers, Mark.
This topic is locked and no more replies can be posted.