I'm having to create a simple madlib game in php but whenever I open the html document but whenever I submit it on the html site it doesn't print it right.
html code
<html> <body> <h1> My MadLib Lab </h1> <form action="madlib.php" method="REQUEST"> Enter a Noun: <input type="text" name="noun1" ><br /> Enter an Adjective: <input type="text" name="adj1" ><br /> <input type="submit" value="Click to see your MadLib" > </form> </body> </html>
php code
<html> <body> <?php $noun1 = $_REQUEST['noun1']; $adj1 = $_REQUEST['adj1']; print <h1>"The $adj1 old $noun1"</h1>; print <br>"There once was an $adj1 $noun1, who lived in a van down by the river."</br>; print <br>"<The end."</br>; ?> </html>s ou </body>
This is what it prints out
"The $adj1 old $noun1";
There once was an $adj1 $noun1, who lived in a van down by the river.;
print "The end."; ?>
Any help would be appreciated.
Thanks,
David