RE: [PHP] Passing variables to another page - newbie
| From: | Dean Martin | Date: | Mon, 07 May 2001 01:00:26 +0000 |
| Subject: | RE: [PHP] Passing variables to another page - newbie | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-51678@lists.php.net to get a copy of this message | ||
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: tcuhost@hotmail.com [mailto:tcuhost@hotmail.com]
Sent: Sunday, May 06, 2001 1:06 PM
To: php-general@lists.php.net
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" <dempsejn@georgetown.edu>
To: <php-general@lists.php.net>; "Dean Martin" <dlmartin@cvn.net>
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:dlmartin@cvn.net]
> Sent: Sunday, May 06, 2001 1:50 PM
> To: php-general@lists.php.net
> 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: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>