I'm trying to retrieve data from a php file named return that contains <?php
echo 'here is a string';
?>
. I'm doing this through an html file containing `
div { color:blue; }
span { color:red; }
` When the button is clicked it retrieves and displays the code fine, but on the page loading, it displays "undefined" instead of the data in return.php. Any solutions?