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
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
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
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
]
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
> 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
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
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
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
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
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
11 matches
Mail list logo