I have written a piece of code that is half php and half js. I want to access the content of a js variable from the php side. file1.php: //js begin var x = 5; //js end //php begin $x = x; // How can I do this? Obviously, it doesnt work in this way //php end Comments welcome, Ruben
Use Ajax. I would suggest using the Prototype javascript library.
Originally Posted by temp.user123 You know... You're not so smart. Do you need me to educate you? If you say, "please," (and do so, nicely) then I will show you where you're dead wrong.
Single answer -> ajax Dont try to find another way to do that!!!! and save time XMLHttpRequest
There are currently 1 users browsing this thread. (0 members and 1 guests)
Forum Rules
Bookmarks