[PHP-DEV] Bug #303: $querystring used in docs instead of $QUERY_STRING From: mark <email protected>
Date: 04/22/98

From: mark <email protected>
Operating system: n/a
PHP version: 3.0 Release Candidate 4
PHP Bug Type: Documentation problem
Bug description:
In http://www.php.net/distributions/bigmanual.html
there is a section which describes how to break up
a query string. It looks like this:
 
$a = split ('&', $querystring);
$i = 0;
while ($i < count ($a)) {
  $b = split ('=', $a [$i]);
  echo 'Value for parameter ', htmlspecialchars (urldecode ($b [0])),
       ' is ', htmlspecialchars (urldecode ($b [1])), "<BR>";
  $i++;
}

This won't work (I discovered after much head banging)
unless you change $querystring to $QUERYSTRING.

mark