▼ Show 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.
Learn More with Madanswer

Related questions

0 votes
asked Jun 22, 2019 in PHP by SakshiSharma
...