I'm in a situation where I have to pass javascript variable to php without redirect (no $_get[]).
The code I'm working around is like
<script> var screen_width=screen.width </script>
<?php $screen_width=[B]javascript_variable[/B] ?>
I want to pass value of this variable to a new php variable.Please suggest me a way I could do the this.
I have tried passing javascript variable to form and thus printing it on screen,but I'm need of converting a javascript variable to a php variable.
I appreciate you for your time.