RKh
RKh

Reputation: 14161

[PHP/JavaScript]: How to call a JavaScript function through PHP and fetch value returned?

I want to call a JavaScript function through PHP and store the returned value in a PHP variable. How to do this?

Upvotes: 0

Views: 298

Answers (1)

Marek Karbarz
Marek Karbarz

Reputation: 29304

You can't do that - javascript being a client side technology will execute after your PHP script has already finished so there's no way to do what you are looking to accomplish.

Upvotes: 1

Related Questions