php - Is there any way to get all GET vars with javascript? -


First of all, I do not want what the URL query contains. I want to see PHP in the $ _ GET array.

This is because the URL query will not show all the parameters if mod_rewrite has been used to make beautiful url

then what a way to get the query string Is that okay in php $ _ GET array?

-

I came up with a way to use PHP and Javascript myself:

  function query_string () { 

... but I need to do this possibly with JavaScript because I can not put the PHP code in a .js file.

Will not Javascript only look for "query string"? How do client-side scripts know about any relay rules?

The only way I can think of using PHP - it's echoing in a variable in an inline script in your main page instead of the JS file.


Comments