E' possibile comunque simulare tale funzionamento....
file : test2069.php
codice:
<?
$redirectTo = "http://localhost/tests/test2069b.php";
$arrVars = array();
$arrVars['pippo'] = "ciao come va ??? bene spero !!!";
$arrVars['pluto'] = "io non sono il cane di topolino";
include("test2069a.php");
?>
file : test2069a.php
codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<style type="text/css">
<!--
.hidden {position:absolute;top:-1000px;left:-1000px}
-->
</style>
</head>
<body>
<form id="myform" class="hidden" action="<? print $redirectTo ?>" method="post">
<? foreach($arrVars as $key => $value) { ?>
<input type="hidden" name="<? print $key ?>" value="<? print $value ?>">
<? } ?>
</form>
<script language="JavaScript" type="text/javascript">
<!--
document.getElementById('myform').submit();
//-->
</script>
</body>
</html>
file : test2069b.php
codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<?
foreach ($HTTP_POST_VARS as $key => $value) {
print "$value
";
} ?>
</body>
</html>