PHP and Javascript interact
PHP and Javascript cannot directly interact since PHP is a server side language and Javascript is a client-side language.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Junaid ShahidPosted Jul 30, 2019, 3:07 AM
Md SarfarajPosted Jul 29, 2019, 11:18 PM
Afzaal Ahmad ZeeshanPosted Jul 29, 2019, 1:29 PM
Exactly, you are right, but you can still inject the values from the PHP code before your JavaScript gets sent to the browser. And this is only possible for the inline JavaScript, not for the loaded scripts.