I am in a basic PHP class, trying to work ahead to make sure I can complete all the assignments in the 8 week summer semester. The book asks me to combine an html file with a php file from a previous chapter, its like a nursery rhyme modified, I have gotten this far and need some help please[code]
StoryStory
[/code] [php]<?php if (filter_has_var(INPUT_POST, "bName")); (filter_has_var(INPUT_POST, "gName")); (filter_has_var(INPUT_POST, "bPart")); (filter_has_var(INPUT_POST, "device")); { //form exists so it will appear first $bName = filter_input(INPUT_POST, "bName"); $gName = filter_input(INPUT_POST, "gName"); $bPart = filter_input(INPUT_POST, "bPart"); $device = filter_input(INPUT_POST, "device"); print "$bName and $gName
Went up the hill
To Fetch a $device of water
$bName fell down and broke his $bPart
And $gName came tumbling after.
\n";
} else {
//create form for the input
print <<<HERE
Please fill in the blanks below, and I'll tell you a story
Boys Name: Girls Name body part<label>water holding device </label>
bucket
cooler
glass
sip
Tell me the story
HERE;
} // end if
?>[/php]