Passing value JavaScript variable to PHP.
Example
JavaScript
Var ffffd=\'aaaa\'
PHP
<
I have tested the following code and it have worked. So please test this code:
function aa()
{
var ffffd='aaaa';
window.location.href="newpage.php?Result=" +ffffd;
}
click a button then will call aa()
function and will go newpage.php where we get ffffd variable value in Result variable
newpage.php:
extract($_GET);
echo $Result;