pass javascript variable to php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oll3i
    Contributor
    • Mar 2007
    • 679

    pass javascript variable to php

    How do I pass javascript vars to php?
    Thank You
  • oll3i
    Contributor
    • Mar 2007
    • 679

    #2
    i 've found a workaround

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      Which one did you find?

      You can pass JavaScript variables as hidden form fields and submit them to a PHP script. You can also pass parameters in an Ajax request. Another way is to attach them to the URL to make a GET request.

      Comment

      Working...