I need to send the value of a java script variable to another page and to store this value in a php variable on that page . Is it possible ?
Asked
Active
Viewed 52 times
0
-
possible duplicate of [How to pass JavaScript variables to PHP?](http://stackoverflow.com/questions/1917576/how-to-pass-javascript-variables-to-php) – MackieeE Mar 08 '14 at 11:59
1 Answers
2
Try this ...
JavaScript
==========
Var a="something";
window.location.href = "phppage.php?pass="+a;
PHP
===
$var=$_GET['pass'];

user1844933
- 3,296
- 2
- 25
- 42