I have the following code in JavaScript:
<script>
var a=Hello;
</script>
PHP Code:-
<?php
$variable = // I want the above JavaScript variable 'a' value to be stored here
?>
Note : I don't want it in a form submission. I have some logic in JavaScript and I want to use it in the same PHP page... Please let me know how I can do this.