--- Stephan Becker <[EMAIL PROTECTED]> wrote: > A special PHP CGI Script, letīs say 'phpscript.cgi' might be called > with GET or POST Parameters. Though I will never now which kind and > how many of such parameters will be passed to that script, I have to > do some work of mine with them and after that would like to call > (redirect to) an other script passing exact the same amount and type > of pararmeters origninally given to my famous phpscript.cgi. > > I just succeeded in handling the URL based stuff like Host, > Scriptname GET Paramters etc. But how to handle the POST Data?
Use the $_POST array. You can loop through it conveniently using something like the following: foreach ($_POST as $name => $value) { ... } As for redirecting, you cannot force a client to send a POST request to another URL (thankfully). So, you either need to send the POST request yourself (and send the output to the client), or you need to think of another solution (such as using URL variables for everything). Hope that helps. Chris ===== Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php