What I want is for my php variable to get the value of my javascript variable
So I get my javascript value:
(function() {
var variable="contenido";
alert(variable);
})();
</script>
So I want to pass it to my php variable:
$url = "<script> document.write(variable) </script>";
echo 'variablePHP = '.$url;