note 12653 modified in function.virtual by felipe
| From: | felipe@php.net | Date: | Wed, 23 Jul 2008 12:59:28 +0000 |
| Subject: | note 12653 modified in function.virtual by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-142597@lists.php.net to get a copy of this message | ||
If you want to pass all post and get values to the cgi script you can use this code:
<?php
$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
--was--
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
http://php.net/manual/en/function.virtual.php