Jump to content
Old threads will finally start getting archived ×

DGray16

New Members
  • Posts

    4
  • Joined

  • Last visited

DGray16's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have it saved under htdocs and when I try opening it up through local host or even the xampp server it's still not working.
  2. Which folder under xampp should I save the madlib.php in?
  3. I'm opening it with firefox straight from my PC. I'm running XAMPP with Apache and MySQL running.
  4. 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
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.