Hi i'm begineer in PHP/JS and i have small question, how can PHP read values of variables in JavaScript?
i have this JS code where i have values
<script type="text/javascript">
function test(tag)
{
var output = tag;
<?php $tags ?> = output; //i tested, but not works
}
</script>
there's php read code
<?php
echo "$tags";
?>
i'm in end with this, Thanks for answers!