how to use php variable in javascript in php same page code example Example: how set a js variable value to php variable in same page <div id="content"></div>