I need to pass one or two variables from my PHP into a JavaScript on the same page.
I've had a read in the PHP manual and it does mention that you can pass variables from JavaScript into PHP but I cannot find a way to do the opposite.
Basically I'm trying to make a form which has a JavaScript function to change what is displayed when a user changes selections in the form. I need to use PHP to look up a filesize based on user input and then JavaScript to display what it finds (without using a submit button).
Thanks