Possible Duplicate:
How can I use a JavaScript variable as a PHP variable?
I need to use javascipt variables in PHP, how can I do that?
eg:
<script>
var abc = 'this is text';
</script>
How can I read variable abc in php?
I am not sure will this help you in anyway. But in this way you can use javascript in server side.
<script type="text/javascript">
var abc= 'this is text';
<?php $abc = "<script>document.write(abc)</script>"?>
</script>
<?php echo $abc;?>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With