0 votes
138 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 113 views
asked Apr 9, 2022 in PHP by Doubtly (98.9k points)
0 votes
1 answer 211 views
asked Oct 9, 2022 in PHP by MrRam (2.0k points)
0 votes
1 answer 128 views
asked Apr 9, 2022 in PHP by Doubtly (98.9k points)
0 votes
1 answer 168 views
0 votes
1 answer 210 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

554 users

...