I want to use my javascript result to set a php variable.
<script>
var hello;
hello = "ilovetuna.php";
</script>
and
<?php
$variable = "<script>document.write(hello);</script>";
?>
and
<?php
require('simple_html_dom.php');
$html = file_get_html($variable);
echo $html;
?>
Warning: file_get_contents(document.write(hello);): failed to open stream
Does someone know how to deal with this? Thank you
ps: i tried to use \ string before " and also tried different ' and ", also ( and ) . but doesnt seem to work.