passing parameters / not finding globals

I have an application on which I have a button to call a piece of php to redirect to another application (2). This other application takes a global variable to select data from a table. If I call the application (2) from a link it all works well. But if I call it from a button nothing get’s selected. I checked the value of the global var before redirect it has the right value. So appearantly the global variables are not global? What am I doing wrong here? Do I need to pass a parameter perhaps on sc_redir? How do I do that so that the called application can pickup the global variable?

Similar Problem

Check this post.

http://forum.scriptcase.net/showthread.php?3474-Passing-parameters-using-HTML-Image-Link