Need Help with $_REQUEST

When I use this url

http://apps.facebook.com/my-app/?age=12&code=1212

it get the code value, but when I use following url

http://www.facebook.com/my-page/app_671618978862937?age=12&code=1212

it does not work.

I am so confused, Help me please, hoe can get value of code from 2nd URL?

I am guessing you use apache mod_rewrite

When the replacement URI contains a query string, the default behavior of RewriteRule is to discard the existing query string, and replace it with the newly generated one. Using the [QSA] flag causes the query strings to be combined.

Consider the following rule:

RewriteRule /pages/(.+) /page.php?page=$1 [QSA]

With the [QSA] flag, a request for /pages/123?one=two will be mapped to /page.php?page=123&one=two. Without the [QSA] flag, that same request will be mapped to /page.php?page=123 - that is, the existing query string will be discarded.


http://httpd.apache.org/docs/current/rewrite/flags.html
Sponsor our Newsletter | Privacy Policy | Terms of Service