Hi all.
Please help. How is it possible to transfer a variable from PHP to JavaScript.
I have the following code.
<?php
$id = 5;
?>
<script>window.location.href = 'view_topic.php?id=VAR'</script>
Instead of VAR should come the value of $id from PHP.
Thanks in advance.