Registration form with captcha
Because of you, I still hold to share knowledge through this blog. These days I am confused what to write on this blog, I have no time to continue my project before. But do not worry, now I want to share knowledge, how to make a completed registration form with a captcha. As we know captcha is necessary to protect the blog or our website from spam.
Registration form is composed of 5 input, ie name, username, passwword, confirm password, email, and spam code. Below are some validation that I use to make this registration form:
- Each input can not be empty, sourcecode ==> “allowBlank: false”.
- username: user can only create a username at least 3 characters and maximum of 12 characters, source code ==> Minlength: 3, MaxLength: 12.
- password: sourcecode ==> inputType: ‘passoword’
- email validation : sourcecode ==> vtype: ‘email’.
To create spam on the extjs code I use script like below.
xtype:'box',
autoEl:{
tag:'img',
src:'spam.php'
}
You can download the sourcecode is in the link below.
Tags: captcha, registration form, validation form
[...] Help: error captcha hi all, i have trouble which my previous tutorial “registration-form-with-captcha“ when i executed in hosting, but when i executed it in my localhost is it fine. i [...]