This is my code. I want to pass today's date inside a url in an iframe. but when I load the page the url does not take today's date
<html>
<title>HTML with PHP</title>
<style>
body {
margin: 0px;
}
</style>
<body>
<?php
$date = date("Y-m-d");
echo '<iframe align="center" width="100%" height="100%" src="http://mypage.com/doc.php?date=$date" frameborder="yes" scrolling="yes" name="iframe" id="iframe"> </iframe>';
?>
</body>
</html>