PDA

View Full Version : GET vars into remoting class


hobbis
08-30-2005, 12:23 PM
What is the best way to access GET vars in a remoting class? I am using AMFPHP but when I return a value such as:

return $_GET['id'];

I get a null. I could pass the variable into the flash object using FashVars="id=<?=GET_['id']?>" but this seems long winded. Specially when I am using lockroot and several movies (meaning I have to set a global variable).

Ideally I would want this variable to be directly accessible inside my remoting classes. Any help please?

klangdon
09-03-2005, 11:49 PM
In php you should be able to reference any GET parameters as regular php variables so the following should work:
return $id;