Re: [PHP] Re: Putting $_POST into string to send to ASP

2004-07-16 Thread Justin Patrin
x27;m wrong? > > Warren Vail > > -Original Message- > From: Lars Torben Wilson [mailto:[EMAIL PROTECTED] > Sent: Friday, July 16, 2004 12:32 PM > To: Jeff Oien > Cc: PHP > Subject: [PHP] Re: Putting $_POST into string to send to ASP > > Jeff Oien wrot

Re: [PHP] Re: Putting $_POST into string to send to ASP

2004-07-16 Thread Jeff Oien
The client's vendor only specifies that it's = pairs and that it's URL encoded so I don't think that's an issue. But don't let that squelch any discussion. :) Jeff Oien Vail, Warren wrote: I believe we all missed something important here, but I've been wrong before. Notice his URL below, specifi

RE: [PHP] Re: Putting $_POST into string to send to ASP

2004-07-16 Thread Vail, Warren
it not? I also would mean that his hack code would not work. Correct me if I'm wrong? Warren Vail -Original Message- From: Lars Torben Wilson [mailto:[EMAIL PROTECTED] Sent: Friday, July 16, 2004 12:32 PM To: Jeff Oien Cc: PHP Subject: [PHP] Re: Putting $_POST into string to send to A

Re: [PHP] Re: Putting $_POST into string to send to ASP

2004-07-16 Thread Lars Torben Wilson
Jeff Oien wrote: Thanks for the helpful examples. One other question. Is there an advantage to sending the URL via a header as opposed to doing http_post like this? http://shiflett.org/hacks/php/http_post Jeff As mentioned a couple of times, size is one. But you still need to url-encode the data

RE: [PHP] Re: Putting $_POST into string to send to ASP

2004-07-16 Thread Vail, Warren
] Sent: Friday, July 16, 2004 1:12 PM To: PHP Subject: Re: [PHP] Re: Putting $_POST into string to send to ASP Thanks for the helpful examples. One other question. Is there an advantage to sending the URL via a header as opposed to doing http_post like this? http://shiflett.org/hacks/php/http_post

Re: [PHP] Re: Putting $_POST into string to send to ASP

2004-07-16 Thread Matt M.
> Thanks for the helpful examples. One other question. Is there an > advantage to sending the URL via a header as opposed to doing http_post > like this? > http://shiflett.org/hacks/php/http_post > Jeff Like someone mentioned earlier. URL's have length limits. That would be one reason to do a po

RE: [PHP] Re: Putting $_POST into string to send to ASP

2004-07-16 Thread Vail, Warren
16, 2004 12:55 PM > To: Vail, Warren > Cc: 'Lars Torben Wilson'; Jeff Oien; PHP > Subject: Re: [PHP] Re: Putting $_POST into string to send to ASP > > > Vail, Warren wrote: > > > How about (probably one of fifty solutions; > > > > Foreach($_POST as

Re: [PHP] Re: Putting $_POST into string to send to ASP

2004-07-16 Thread Jeff Oien
Thanks for the helpful examples. One other question. Is there an advantage to sending the URL via a header as opposed to doing http_post like this? http://shiflett.org/hacks/php/http_post Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Putting $_POST into string to send to ASP

2004-07-16 Thread Lars Torben Wilson
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 me

RE: [PHP] Re: Putting $_POST into string to send to ASP

2004-07-16 Thread Vail, Warren
d 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 -Original Message- From: Lars Torben Wilson [mailto:[EMAIL PROTECTED] Sent: Friday, July 16, 2004 12:32 PM To: Jeff Oien Cc: PHP Subject: [PHP] Re: P

[PHP] Re: Putting $_POST into string to send to ASP

2004-07-16 Thread Lars Torben Wilson
Jeff Oien wrote: Dumb question, sorry if it's a repeat. I will use PHP for a form with error checking. When there are no errors I need to send all the variables thru something like this: $URL = "https://example.com/script.asp?First=Jim&Last=Smith";; urlencode($URL); header("Location: $URL\n"); H