ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Web-specific functions / Captcha functions
  • Permissiveness
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Checks whether the value typed by the user corresponds to the string displayed in a Captcha control.
Example
// Validates the user input
TestCaptcha is boolean
TestCaptcha = CPTCH_Captcha.Verify(EDT_VerifCaptcha)
IF TestCaptcha = True THEN
Info("Congratulations, the Captcha was successfully typed.")
ELSE
Error("Check your input, the values are different.")
END
Syntax
<Result> = <Captcha control>.Verify(<Value to test>)
<Result>: Boolean
  • True if the value of the captcha is correct,
  • False otherwise.
<Captcha control>: Control name
Name of the Captcha control to use.
<Value to test>: Unicode string
Value entered by the user. This parameter can correspond to the name of control in which the Captcha value was entered by the user.
Remarks

Permissiveness

Some character fonts display different characters by using the same drawing or similar drawings. For example, the letter L (lowercase) and the digit 1 are very close: " l " " 1 ".
<Captcha>.Verify takes the most common similarities into account and performs the comparison by accepting a substitution on these characters.
<Captcha>.Verify is not case sensitive if the Captcha contains only uppercase or lowercase characters.
Related Examples:
WW_Blog_AWP Complete examples (WEBDEV): WW_Blog_AWP
[ + ] This example is a site for managing blogs.
A blog is a log or a diary on an Internet site.
It can be consulted by everyone and everyone can write comments.
The author of the blog writes his messages whenever he wants to.
You have the ability to format the text, to include images, notes, etc.
This example is based on an AWP generation so that the site can be referenced by all the search engines.
Furthermore, each blog can e exported in RSS. (Use of the RSS types of WLanguage)
The Captcha control Unit examples (WEBDEV): The Captcha control
[ + ] This example explains how to use the "Captcha" control of WEBDEV.
This control allows you to avoid the automatic inputs in the forms.
Component: wd290page.dll
Minimum version required
  • Version 23
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help