Use Javascript variable in PHP

Posted by Rhepungus on Stack Overflow See other posts from Stack Overflow or by Rhepungus
Published on 2010-06-17T19:34:19Z Indexed on 2010/06/17 19:43 UTC
Read the original article Hit count: 190

Filed under:
|

I have seen some answers to this question in previous posts, but no one has given a real working example, just psuedo code. Has anyone ever done this before?

Basically, what i have is a variable in javascript (jquery), and i want to use this variable to drive a query (for an overlay window) i am going to run in php.

From what i have read you can do this using an ajax call to the same page so it doesnt refresh itself, but i must be missing something because i can't get it working...

Any examples out there?

Thanks.

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript