variable passing

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nincha
Forum Contributor
Posts: 191
Joined: Fri Mar 28, 2003 12:30 pm
Location: CA, USA

variable passing

Post 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
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post 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
Post Reply