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 ?
user1844933
3,4132 gold badges28 silver badges44 bronze badges
-
possible duplicate of How to pass JavaScript variables to PHP?MackieeE– MackieeE2014年03月08日 11:59:04 +00:00Commented Mar 8, 2014 at 11:59
1 Answer 1
Try this ...
JavaScript
==========
Var a="something";
window.location.href = "phppage.php?pass="+a;
PHP
===
$var=$_GET['pass'];
answered Mar 8, 2014 at 11:50
user1844933
3,4132 gold badges28 silver badges44 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
default