0 votes
397 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 340 views
asked Apr 9, 2022 in PHP by Doubtly (98.9k points)
0 votes
1 answer 453 views
asked Oct 9, 2022 in PHP by MrRam (2.0k points)
0 votes
1 answer 355 views
asked Apr 9, 2022 in PHP by Doubtly (98.9k points)
0 votes
1 answer 418 views
0 votes
1 answer 510 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

650 users

...