E' possibile comunque simulare tale funzionamento....
file : test2069.php
file : test2069a.phpcodice:<? $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 : test2069b.phpcodice:<!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>
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>

Rispondi quotando