Jump to content

How to find the GET variable?


chantown

Recommended Posts

The only way I can think of is doing a foreach loop

 

<?php
    foreach ($_GET as $key => $val) {
            echo $key . "  =  " . $val . "<Br />";
    }
?>

 

You may also be able to use $_SERVER['QUERY_STRING']

 

echo $_SERVER['QUERY_STRING'];

 

Than using explode you should be able to pull out the name. Or instead of explode you can use parse_str .

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.