0 votes
143 views
in PHP by (98.9k points)
edited

How can PHP and Javascript interact?

1 Answer

0 votes
by (98.9k points)
selected by
 
Best answer
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
1 answer 121 views
asked Apr 9, 2022 in PHP by Doubtly (98.9k points)
0 votes
1 answer 216 views
asked Oct 9, 2022 in PHP by MrRam (2.0k points)
0 votes
1 answer 134 views
asked Apr 9, 2022 in PHP by Doubtly (98.9k points)
0 votes
1 answer 174 views
0 votes
1 answer 219 views
asked Apr 9, 2022 in PHP by Doubtly (98.9k points)

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

561 users

...