<?php
function build_geturl()
{
// global variables needed by the function
global $REQUEST_URI, $REQUEST_METHOD, $HTTP_GET_VARS, $HTTP_POST_VARS;
// determine what is exactly the current script name
list($fullfile, $voided) = explode("?", $REQUEST_URI);
// remember the script filename for later use
$this->file = $fullfile;
// checks the current form method
$cgi = $REQUEST_METHOD == 'GET' ? $HTTP_GET_VARS : $HTTP_POST_VARS;
// build the new "GET" type URL to be appended
reset ($cgi);
while (list($key, $value) = each($cgi)) {
if ($key != "row")
$query_string .= "&" . $key . "=" . $value;
}
return $query_string;
}
?>