Hello All,
I am having one javascript function which is written in PHP. It's having one javascript variable. Here is the function.
$js = "<script language='javascript'>\n" .
"function getValue(val)\n" .
"{\n" .
"window.location.href='http://localhost/users/page/'+val\n" .
"}\n" .
"</script>";
This function is called onchange event of combo, But I am not getting the value of javascript variable val. Is it possible to get the javascript variable's value in PHP? If yes then how? Please help me. Thanks in advance.