browser doesnt recognize my php code
Posted: Thu May 28, 2009 8:00 pm
im just starting out w/ php and have this page that i wanted to test:
::::::::::: this should connect with the following page/code :
BUT, the output i get from my broswer is just "Your Final Story" and thats it. I have reg globals on cuz im just starting out so this should work as far as i know. can anyone tell me what is wrong?
Code: Select all
<html>
<head>
<title>chapter one, part two. my short story</title>
</head>
<body>
<h3> My Short Story </h3>
<p>
Upon the half decayed veranda of a small frame house that stood near the edge of a NOUN near the town of PROPER NOUN, Ohio, a fat little old NOUN walked nervously up and down. Across a long field that had been PAST TENSE VERB for clover but that had produced only a dense crop of COLOR mustard NOUN, he could see the public PLACE along which went a wagon filled with berry pickers returning from the PLACE. FINISH THE STORY SENTENCE.
</p>
<form method ="post"
action ="yourStory.php">
noun:
<input type ="text"
name ="noun1"
value =""><br>
proper noun:
<input type ="text"
name ="properNoun1"
value =""><br>
noun:
<input type ="text"
name ="noun2"
value =""><br>
past tense verb:
<input type ="text"
name ="PTVerb1"
value =""><br>
color:
<input type ="text"
name ="color1"
value =""><br>
noun:
<input type ="text"
name ="noun3"
value =""><br>
place:
<input type ="text"
name ="place1"
value =""><br>
place:
<input type ="text"
name ="place2"
value =""><br>
type the final sentence of the story here:
<input type ="text area"
name ="finalSentence"
value =""><br>
<input type ="submit"
value ="Make story!">
</form>
</body>
</html>
::::::::::: this should connect with the following page/code :
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>chapter 1, part 2. final short story</title>
</head>
<body>
<h3>Your Final Story</h3>
<?
print <<<HERE
Upon the half decayed veranda of a small frame house that stood near the edge of a/an $noun1 near the town of $properNoun1, Ohio, a fat little old $noun2 walked nervously up and down. Across a long field that had been PTVerb1 for clover but that had produced only a dense crop of $color1 mustard $noun3, he could see the public $place1 along which went a wagon filled with berry pickers returning from the $place2. $finalSentence.
HERE;
?>
</body>
</html>