can php and java script exchange data??

Recommended Answers

All 3 Replies

Yes and you can include java in your php code.

no sir i mean javascript and php

PHP run on server side, Javascript run on client side. They cant exchange data directly, but you can use AJAX to send data from client to server with javascript and php.

By the onther way PHP can write dynamic javascript code inside html page using <script> tag using some data from PHP.

There are alot infos about that on internet.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.