HTML and PHP in js

Code flow like below

First PHP is executed, and return the HTML page
HTML is sent to the browser
and the browser will then execute the javascript.

you can’t break the flow.

If you want to change anything via Javascript, then you have to get data from php via ajax and then change the dom.

via ajax you should execute the voip_profile_image($visitorid,'thumb'); by sending the sRemoteid variable in POST or GET, and then change the img dom via js

Leave a Comment