- PHP
example:
$a = explode('&', $_SERVER['QUERY_STRING']);
$i = 0;
while ($i < count($a)) {
$b = split('=', $a[$i]);
echo 'Value for parameter ', htmlspecialchars(urldecode($b[0])),
' is ', htmlspecialchars(urldecode($b[1])), "
\n";
$i++;
}
?>
1 comment:
// the following works with both GET and POST
foreach($_SERVER as $key => $val) echo $key . ' : ' . $val;
Post a Comment