I'm working on a project which involves JavaScript and PHP and I'm really stuck.
I have a php file which returns a string (myPHPfile.php)
I would like to use this string as a parameter in one of my javascript function (myFunction(string)).
Expand|Select|Wrap|Line Numbers
- <body onload="load(); myFunction(myPHPfile.php);" >
Or perhaps I'm looking for a general answer of how to capture a value from PHP and use it in a JavaScript function as a parameter.
Thank you in advance.