So here is my current code that doesn't work for what I'm trying to do:
<?php
$urlp1 = "members/";
$urlp2 = 0;
$urlp3 = ".html";
$url = $urlp1.$urlp2.$urlp3;
$data = file_get_contents($url);
?>
<script type="text/javascript">
var url = "<?php echo $url; ?>";
var temp = getElementsByClassName('daniweb');
document.write(temp);
</script>
<p style="margin-bottom: 50px;"></p>
<?php echo $data; ?>
I'm trying to get the echoed $data which has the class name 'daniweb' in it to return in var temp, however even though $data is echoed, its technically not part of the document. Any ideas? Thanks in advance!