ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

What is the best form validation in your opinion? why?

user-image
تم إضافة السؤال من قبل عبدالرزاق رحمون , IT engineer , Ministry of Education
تاريخ النشر: 2016/03/25
Syed Sabur
من قبل Syed Sabur , Sr Technical Recruiter , SQL Pager LLC

Use Ajax for form validation, because it has the power to work on the specific target instantly without impacting on any other part.

Mohammad Aman
من قبل Mohammad Aman , Web Developer , IHCC

Best choice to use server side validation. Client side validation are harmful and hackers may attack on your web site. Client side code can be viewed in browser while server side code in parsed before render the page. I want to suggest you don't use html 5 require attribute to validate your input because it is removed if user want going to developer console by clicking inspect element.

Rehan Farooq
من قبل Rehan Farooq , WEB DEVELOPER/DIGITAL MARKETING EXPERT , Upwork

Here is the best validation practices and tutorials!

https://www.smashingmagazine.com/2009/07/web-form-validation-best-practices-and-tutorials/

Gayasuddin Mohammed
من قبل Gayasuddin Mohammed , Advocate , Practicing Law before High Court at Hyderabad

like -not accepting numerical values for alphabets or vice versa

- when the values are limited and known set then providing the drop down box so that restricting the values of inappropriate.

- radio buttons for yes/no, true/false, for known very limited kind of sets had to choose only one out of them

-  check boxes when more than a option can be choosen out of limited set of values known prior.

few I can think of. sure they are very much useful for validation when you are designing UI.

My 2 cents. Thanks.

عبدالرزاق رحمون
من قبل عبدالرزاق رحمون , IT engineer , Ministry of Education

Most of php framework have theire own form validation (example : codeigniter form validation) -server side validation- as mentionned in Mohammad Aman answer,

but i think that the best is cited in this link http://formvalidation.io/

what do you think about?

nassreddine seydi
من قبل nassreddine seydi , Web and Hybrid Mobile apps Developer , DealTeamQatar

hi,

 please be more specific

المزيد من الأسئلة المماثلة