Quote:
Originally Posted by drsim
you can pass variables from javascript to php and from php to javascript, but in both cases you have to have php installed with a server.
|
As noted before, you can fetch a value from a php variable and use it in javascript as long as the php variable has a value before the javascript is executed, but you can not pass a value from a javascript variable to php unless you load it into a form and submit the form to a php script or use AJAX to perform the httpRequest to a page that contains the php script.