how can I use request parameters without using $_REQUEST i.e. let say I have a prameter FName passed in request and I want to use it in my php file but I don't want to use $_REQUEST object, I just want to use it as $FName, is this possible? regards, Jawed Ali
I assume you also don't want to take $_POST / $_GET ? I dont know any other method but I know that just using $FName to get your request parameters is switched off by most hosters for security reasons. regards, A. Edit: Oops sry, I think I misunderstood you ^^ derek is right.
of course. but you would have to use the $_REQUEST option once. You just create a variable called $ Fname and then assign the $_REQUEST['id or name'] to that variable. So like $Fname = $_REQUEST['id or name']; PHP: Then you wouldn't have to keep using the $_REQUEST all the time. Or if you didn't want to use the request comman at all, there's always $_GET or $_POST. Hope that answers your question...
You can use extract() to do this, but use it wisely. The extract() function can overwrite current variables and your script can be compromised. The EXTR_SKIP parameter makes sure existing variables don't get overwritten
If you have access to your php.ini file you can switch Register Globals On. This isnt advised though.
Some info on that; http://brainfish-eat-fishbrain.blogspot.com/2007/09/registerglobals-off-is-not-end-of-world.html ; mvl extract() is even nicer; didn't know it existed; thanks