Jump to content

[SOLVED] GET['var'] in the url


ohdang888

Recommended Posts

..is "show_all" a specific variable, or are you wanting to "show all" as in find out what all your variables are?

 

if it's a specific variable, you'd access it by

echo $_GET['show_all'];  // this echo's the value of the variable

 

if you are wanting to find out what variables are being passed in your url, $_GET is an array of those variables you'd access them any number of ways here's an example of how to echo them:

 

foreach ($_GET as $key => $val) { 
   echo $key . " = " . $val . "<br>";
}

 

If neither of these is what you mean, then please clarify some more.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.