Log in Register

Login to your account

Username
Password *
Remember Me

Create an account

Fields marked with an asterisk (*) are required.
Name
Username
Password *
Verify password *
Email *
Verify email *
Phone *
City
Country *
1.jpg

0


How can PHP and Javascript interact?


Submitted by blarbew On Saturday, 05 September 2015.

Category: PHP Tags: PHP interview questions and answers for freshers


Question

How can PHP and Javascript interact?

1 Answers.
 

0


PHP and Javascript cannot directly interacts since PHP is a server side language and Javascript is a client side language. However we can exchange variables since PHP is able to generate Javascript code to be executed by the browser and it is possible to pass specific variables back to PHP via the URL.
Submitted by sushil kumar On Saturday, 05 September 2015
Answer :-
PHP and Javascript cannot directly interacts since PHP is a server side language and Javascript is a client side language. However we can exchange variables since PHP is able to generate Javascript code to be executed by the browser and it is possible to pass specific variables back to PHP via the URL.

1.jpg
Go to top