0 votes
383 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 325 views
asked Apr 9, 2022 in PHP by Doubtly (98.9k points)
0 votes
1 answer 437 views
asked Oct 9, 2022 in PHP by MrRam (2.0k points)
0 votes
1 answer 343 views
asked Apr 9, 2022 in PHP by Doubtly (98.9k points)
0 votes
1 answer 405 views
0 votes
1 answer 497 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!

Recent Badges

Doubtly Earned a badge
Doubtly Earned a badge
Doubtly Earned a badge

5.7k questions

5.1k answers

108 comments

648 users

...