I have a code here <script language="javascript"><!--// var hello_id = 1234; //--></script> <script type="text/javascript" src="http://www.examplesite.com/show.php"> </script> What I want to do is get the value of var hello_id to be accessed in the show.php file. Can someone tell me how to access that variable in the PHP code. Thanks.
Either put that value in the cookie or in the query string. Google is your friend. edit; nvm, seems like you found your solution.
You can use xmlhttprequest object to use java script variable value in php pages. Or you can also set cookie to be available the variable to other pages thanks