Login Form validation
Create awesome game website with Game Magazine Joomla template
- GK User
- Sat Nov 09, 2013 11:10 am
Hello,
I would like to validate login form on client-side. I have tried to modify several .php files in mod_login, but without no success. The main goal is to set both username/email and password fields when user is logging to required.
Please help, thanks!
I would like to validate login form on client-side. I have tried to modify several .php files in mod_login, but without no success. The main goal is to set both username/email and password fields when user is logging to required.
Please help, thanks!
-
- Fresh Boarder
- GK User
- Sat Nov 09, 2013 11:51 am
Hello,
I think that the best and easiest way will be using the native HTML5 form validation mechanism.
You can put the:
attributed in all necessary fields. Additionally you can specify the proper type for the fields like "email", "number", "password" etc. then browser will automatically validate it and will show proper messages before sending the form.
More details you can find here: http://www.the-art-of-web.com/html/html ... n4TsJTF10M
I think that the best and easiest way will be using the native HTML5 form validation mechanism.
You can put the:
- Code: Select all
required="required"
attributed in all necessary fields. Additionally you can specify the proper type for the fields like "email", "number", "password" etc. then browser will automatically validate it and will show proper messages before sending the form.
More details you can find here: http://www.the-art-of-web.com/html/html ... n4TsJTF10M
-
- Administrator
- GK User
- Sat Nov 09, 2013 1:46 pm
Thanks, working well
-
- Fresh Boarder
3 posts
• Page 1 of 1