ConQuery
| resources: | Home Installation Betas Source Code Screenshots/Tutorial |
|---|---|
| query plugins: | Repository Documentation CookBook Submit plugin |
| talkback: | Mailing List Bugs / RFE Comments Support / Discussion Members |
| related projects: | Mycroft NeedleSearch |
ConQuery vars test
" . urldecode($HTTP_REFERER) . "Values submitted via POST method:
";
if ($HTTP_POST_VARS)
{
for(reset($HTTP_POST_VARS); $key = key($HTTP_POST_VARS); next
($HTTP_POST_VARS))
{
if (is_array($HTTP_POST_VARS[$key]))
{
$num=count($HTTP_POST_VARS[$key]);
for ($i=0; $i<$num; $i++)
print "$$key"."[$i] = ".$HTTP_POST_VARS[$key][$i]."
\n";
}
else
{
print "$$key = ".$HTTP_POST_VARS[$key]."
\n";
}
}
}
print "
"; print "Values submitted via GET method:
";
if ($HTTP_GET_VARS)
{
for(reset($HTTP_GET_VARS); $key = key($HTTP_GET_VARS); next($HTTP_GET_VARS))
{
if (is_array($HTTP_GET_VARS[$key]))
{
$num=count($HTTP_GET_VARS[$key]);
for ($i=0; $i<$num; $i++)
print "$$key"."[$i] = ".$HTTP_GET_VARS[$key][$i]."
\n";
}
else
{
print "$$key = ".$HTTP_GET_VARS[$key]."
\n";
}
}
}
print "
"; print "
HTTP Headers:
";
$headers = getallheaders();
while (list($header, $value) = each($headers))
print "$header: $value
\n";
print "
"; ?>