Why should I use JavaScript to check the page, even I can use php to do the same?

I am starting to learn a java script, and I just read that we are using a java script to interactively and check the page ... so my question is what

We can check our page with php, why should we use JavaScript?

+3
source share
8 answers

Ideally, you should do both. But at least you should use server side validation.

The reason you check JS or the client side is because

  • User receives immediate error feedback
  • Your server saved from round trip for less checking

JS , /. .

+7

Javascript "" , .

AS WELL, javascript .

+3

Javascript vaidation - . , ​​ . , ,

+1

Javascript i.e, , php ser

+1

, , , , php, Javascript.

Javascript (.. ), , . . , - , 15 . , , . Javascript, , .

, . , - Javascript (, Javascript).

+1

:

PHP = Javascript =

HTTP-

. . Javascript (, ) PHP . ajax, .

:

php

js ...


php -

js... !!


php

js .

+1

php, php .

Javascript , .

0

Javascript , .

, , .

, , , . php.

, , javascript .

0

All Articles