Im having a similar problem. My problem is that the variable is null when in the php file that I include. The include is done with in a if() does that have something to with the way I must include the php file?
It seems like the php file, which contains html is included correctly. But the variable turn out as ""
Sample
<input type="hidden" name="destination" value="$user_name">
Becomes
<input type="hidden" name="destination" value="">
When handeled by the main script. $user_name is global and I have tried several of echo methods.
Im truly new in PHP programming, only done installation before. So please dont bite my head of....
Thanks for any help