0 votes
in PHP by

How can PHP and Javascript interact?

1 Answer

0 votes
by
PHP and Javascript cannot directly interact since PHP is a server side language and Javascript is a client-side language. However, we can exchange variables since PHP can generate Javascript code to be executed by the browser and it is possible to pass specific variables back to PHP via the URL.

Related questions

0 votes
asked Jun 22, 2019 in PHP by SakshiSharma
+1 vote
asked Jun 23, 2019 in PHP by SakshiSharma
...