Web Analytics Made Easy -
StatCounter Javascript variables to PHP variables - CodingForum

Announcement

Collapse
No announcement yet.

Javascript variables to PHP variables

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Javascript variables to PHP variables

    Anyone know how to get Javascript variables into PHP variables or a MySQL database? Full question in the PHP section.


    http://www.codingforum.net/showthread.php?t=162909



    -----
    Leonard Whistler

  • #2
    This is not possible without refreshing the page because PHP is parsed server side and Javascript is parsed client side. The PHP is always parsed "before" the page is shown to the client in other words.

    See also:-

    http://www.smallbizonline.co.uk/php_..._variables.php


    "The best horse won, and that's all you can ask in any sport". - Racing commentator

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

    Comment


    • #3
      Why did you cross post this? We've posted solutions. Don't waste our time.
      ||||If you are getting paid to do a job, don't ask for help on it!||||

      Comment

      Working...
      X