I just downloaded mamp 3 with php 5.5.10. I created a new file with just php and put in the htdocs folder and it displayed correctly in chrome. But then I added some html and it displayed nothing. I checked the source code and it had one blank line. How do I fix it so that it displays the HTML and PHP? Also, why does this happen?
initial php was
<?php echo 'hi';?>
then i changed it to
<!DOCTYPE html>
<html>
<head>
<title>food</title>
</head>
<body>
<?php
echo 'hi';
?>
<form method="post" <?php echo "action=\"$_SERVER['PHP_SELF']\"";?>>
<input type="text" name="food" placeholder="enter a food name">
<input type="submit" value="submit">
</form>
</body>
</html>