Try creating a copy of your script and having the first copy submit to the second copy. This will tell you if it's a caching problem (submit to self) rather than something else. If you still can't determine the problem, make a copy of your generated form, convert the proprietary text to gibberish, and post it somewhere where we can look at the page source.