|
Ok,
this
makes
marginally
more
sense.
So,
you
want
your
PHP
to
retrun
a
variable
to
the
JavaScript?
Try
a
obscure
fiel
|
|
|
|
|
Ok, this makes marginally more sense. So, you want your PHP to retrun a variable to the JavaScript? Try a obscure field:and the js: var value = document.getElementById( myHiddenField').value;if that is not the case, if you are trying to get a JS variable into PHP, that cannot be done.PHP is a server side language, which means the code is DONE by the time the web page is displayed. JavaScript is a client side language, which means the code is executed ONCE THE PAGE IS LOADED. Communication between client-side and server-side languages is limited, and one way (server-side->client-side via obscure field [crude]). I suggest you rethink your method 0Was this answer helpful?
|
|
|
|
|
|
|
|
|
(VISITOR) AUTHOR'S NAME Sophia
MESSAGE TIMESTAMP 16 september 2012, 06:30:32
AUTHOR'S IP LOGGED 220.233.208.86
|
|
|
|