Thanks to everyone for the help - unfortunately my problem seems to be the
function I'm using to do the redirecting. header() is supposed to be the
first item passed. What I'm trying to do is use a line of code well down
into the logic of my script to redirect the user to another page along with
the necessary variables.
I may need to validate input on one page, have another form inside my code
that is executed after the first form posts, then when they choose payment
type that form can post to the appropriate payment site.... Seems like an
extra step.
Dean
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 06, 2001 1:06 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Passing variables to another page - newbie
also is you want to add more than one variable in the example given you use
the '&' Sign
ex with one var:
header("Location: http://something.foo.bar.com/page.extension?var1=etc");
ex with 3 vars:
header("Location:
http://something.foo.bar.com/page.extension?var1=etc&var2=123&var3=abc");
----- Original Message -----
From: "Jack Dempsey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Dean Martin" <[EMAIL PROTECTED]>
Sent: Sunday, May 06, 2001 11:01 AM
Subject: RE: [PHP] Passing variables to another page - newbie
> header("Location: http://something.foo.bar.com/page.extension?var1=etc");
>
> -----Original Message-----
> From: Dean Martin [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 06, 2001 1:50 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Passing variables to another page - newbie
>
>
> I have an order form that is validating input, mailing me the results of
the
> form, then I want to pass the user off to either Paypal or Revecom
> (depending on their choice) for processing.
>
> Everything works except trying to pass the variables to the payment
> processor. I thought that
>
> header("location://url?var1=value1?var2=value2") would work but not luck.
>
> Could someone point me in the right direction please?
>
> Thanks,
> Dean Martin
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]