JavaScript variables is probably the wrong term - unless you really mean javascript calculated values.
To transfer these values to a PHP page some kind transport via the HTTP protocol is needed, such as a form, or GET parameters on the URL string. POST (with forms) is preferable. The values have to be set to a form field so they will be available in PHP.
Cookies are ok, but what if the visitor has cookies turned off?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.