If you want to pass all post and get values to the cgi script you can use this code:
$QSTRING = $QUERY_STRING;
while (list ($header, $value) = each ($HTTP_POST_VARS))
{
$QSTRING = $QSTRING.'&'.$header.'='.$value;
}
virtual($script.'?'.$QSTRING);
It takes all the values of $HTTP_POST_VARS and appends them in the proper format to the values you get in $QUERY_STRING
Taken from the PHP fancy chm manual. Submitted by logang@deltatee.com
Hope it helps.