Re: Re: Putting $_POST into string to send to ASP

From: Date: Fri, 16 Jul 2004 19:54:44 +0000
Subject: Re: Re: Putting $_POST into string to send to ASP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-190747@lists.php.net to get a copy of this message
Vail, Warren wrote:
How about (probably one of fifty solutions; Foreach($_POST as $k => $v) $vals[] = $k."=".$v; $strvals = urlencode(implode("&",$vals)); Header("Location: https://example.com/script.asp?".$strvals); One thing to think about, URL's are limited in length, and one reason for using method=post is that they won't fit in a URL, for this you'll need to make sure they fit. Warren Vail
You could do that, but for one thing, it doesn't handle arrays. The code snippet in the user notes does. -- Torben Wilson <torbenwilson@shaw.ca>

« previous php.general (#190747) next »