I was having the same problem here. Then I looked at the code from the ch04/final/makemeelvis/sendemail.php file side by side with the file that I had created while following the chapter.
I corrected any areas that were different. The example in the book is different from the one in the downloaded code from the internet.
Also the one thing that seemed to save me... for whatever reason... was making sure that
<input type="submit" name="submit" value="Submit" />
looked exactly like that.
Before I corrected it, it had
with a capital S instead of lower case. I think that is what solved the "sticky form problem" for me.
Although before that correction, I also realized that in the downloaded code example from internet... the following code
$output_form = true;
was in a different place as well,... in the example in the book.
So it was a few corrections that got it corrected I believe. Just make sure to check your work against the code in the downloaded internet examples.
This post has been edited by rhender: 13 August 2012 - 11:41 AM