It looks like tmpPaid has a value of "Y"... what exactly is the issue? You can't get the value on the next page? I may need FTP access and a URL with steps to reproduce in order to debug it. I don't see any problems in your files and don't really see an issue described in your post that I might look into.