hello..

can php and java script exchange data??

Recommended Answers

Hi,
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 …

Jump to Post

All 3 Replies

Yes and you can include java in your php code.

no sir i mean javascript and php

Hi,
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.
http://www.w3schools.com/php/php_ajax_intro.asp
http://www.coderslexicon.com/the-basics-of-passing-values-from-javascript-to-php-and-back/

Be a part of the DaniWeb community

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