Html form validation in js

Hi

I have a php project that contains a form called contact us. In this case, when the user submits this form, a letter is sent to the administrator. My goal is to make this page dynamic. I mean that the administrator can add or change fields on the contact page. To do this, I implemented a text editor. here the administrator can create a contact page. My problem is that I want to check (both server side and client side) all fields. how is this possible using javascript. Does anyone know this?

+3
source share
3 answers

, , .

, . , . , . , , : , , , , , . , . .

jQuery , ( CodeIgniter). .

, , . wufoo.com, , . , . , jQuery, .

+2

, , . , , , . - " " , . ,

 $Field_1 = array(type=>"textbox",validate_as=>"email");
0

, , . HTML , , . . (Java script script, LS Form validator, )

There will be no other situation on the server side, perhaps even simpler.

0
source

Source: https://habr.com/ru/post/1729858/


All Articles