Page 1 of 1

variable passing

Posted: Fri Apr 18, 2003 1:38 pm
by nincha
say u got a variable x in javascript, now how would u pass that to variable $y in php, and how would u do it the other way around. thnx

Posted: Fri Apr 18, 2003 1:42 pm
by twigletmac
Passing a javascript variable to PHP, possible only if the page is reloaded and the variable is sent via POST or GET (ie in the URL) or is stored in a cookie.

Passing PHP variables to JavaScript, easy peasy, example found here:
viewtopic.php?t=1030

Mac