0 votes
417 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 361 views
asked Apr 9, 2022 in PHP by Doubtly (98.9k points)
0 votes
1 answer 472 views
asked Oct 9, 2022 in PHP by MrRam (2.0k points)
0 votes
1 answer 378 views
asked Apr 9, 2022 in PHP by Doubtly (98.9k points)
0 votes
1 answer 434 views
0 votes
1 answer 525 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
Ritesh Maurya Earned a badge
Doubtly Earned a badge

5.7k questions

5.1k answers

108 comments

650 users

...