How to return a php variable, to a html file which can be use in html file as javascript variable?
echo "";
Here i load a login.html file. Along this i want to pass a php variable contents to login.html file, so that i can use it in javascript within login.html file.
Public Comments
- First of all, login.html appears to be a static HTML file. It won't do anything with a "php variable". Leaving out the PHP part, you *can* pass values from one page to another, and read them on the second page with JavaScript. Here's an example: (sorry about the missing indentation; yahoo doesn't display leading white space. look at the source of this page to see how it should have been indented) [in the original page] [in the receiving page, login.html]
Powered by Yahoo! Answers