Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Using Captcha in XSLT function‏

$
0
0
It's not my area but just looking at your code and the sample from the documentation I've noticed 2 things:
where
$captcha_value = <input name="captcha" type="hidden" id="captchaEncryptedValue" value="{$captcha_encryptedValue}" />
and
$captcha_encryptedValue = <input type="text" Placeholder="Type above text" id="txtCaptcha" name="txtCaptcha" value="{$captcha_value}" />
Shouldn't it be like this?

$captcha_encryptedValue = <input name="captcha" type="hidden" id="captchaEncryptedValue" value="{$captcha_encryptedValue}" />

$captcha_value = <input type="text" Placeholder="Type above text" id="txtCaptcha" name="txtCaptcha" value="{$captcha_value}" />

You've written it vice versa

2.
In the documentation sample, one gets:

a. the value from the form's "txtCaptcha" field with c1:GetFormData()
<xsl:variable name="captcha_value" select="c1:GetFormData('txtCaptcha')" />
b. the value from the hidden "captcha" field - first with c1:GetFormData(), then with captcha:GetEncryptedValue()
<xsl:variable name="captcha_encryptedValue" select="captcha:GetEncryptedValue(c1:GetFormData('captcha'))" />
Not clear from your code, how you get those.

Again, not my area. Hopefully not misleading you

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>