[PHP] URL Encode to send as form POSTed Items

2002-11-25 Thread Zac Hillier
Hi All,

I would like to know if it's possible to use php to encode form variables as
if they had come from a post form instead of a get form. I imagine I need to
place them into a header but cannot find much to read that gives any
information on this.

I need to create form variables and than use header location to direct the
user to another page that will process the form.

I'm posting to another site which is why i have to use form variables. I
would like to avoid using JavaScript as this takes longer, will not work on
all machines.

Thanks

Zac


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] URL Encode to send as form POSTed Items

2002-11-25 Thread Rasmus Lerdorf
You can't send POST data with a Location redirect.  You can do it by
connecting directly to port 80 of the remote server and sending the POST
data.

-R

On Mon, 25 Nov 2002, Zac Hillier wrote:

 Hi All,

 I would like to know if it's possible to use php to encode form variables as
 if they had come from a post form instead of a get form. I imagine I need to
 place them into a header but cannot find much to read that gives any
 information on this.

 I need to create form variables and than use header location to direct the
 user to another page that will process the form.

 I'm posting to another site which is why i have to use form variables. I
 would like to avoid using JavaScript as this takes longer, will not work on
 all machines.

 Thanks

 Zac


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php