RE: [PHP] A quick question - Help Please !
| From: | Dan McCullough | Date: | Mon, 19 Aug 2002 16:22:59 +0000 |
| Subject: | RE: [PHP] A quick question - Help Please ! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-113224@lists.php.net to get a copy of this message | ||
I have to send a form with a whole bunch of hidden fields and form fields to the remote server. I
have tried sending via CURL, until I remembered that they still have to input the cc information,
so that was out, and then I tried doing PHP_SELF and then if the $submit then send email and do a
header("Location : redirect to the payment process with name value pairs"); for some
reason it
either didnt like the name value or it couldnt see that the form was being submitted from
order.php.
--- "Trout, Travis" <ttrout@mobileregister.com> wrote:
> When you submit, does the form call a php self function or are you calling a
> file on the remote server? If you are doing either, why not just call
> another php file on you local server to where you can FIRST send your email
> and THEN send your info to the remote server? What options do you have for
> sending the information to the remote server?
>
> Travis Trout
>
>
>
> -----Original Message-----
> From: Adrian Murphy [mailto:adrian.murphy@2020tourism.com]
> Sent: Monday, August 19, 2002 10:48 AM
> To: Dan McCullough; PHP General List
> Subject: Re: [PHP] A quick question - Help Please !
>
>
> to do it with javascript u could post the form to
> another local page with a form with hidden fields -
> send the mail and use onload="" to post the second form.
> would be a messy way to do it but would work.
>
> adrian murphy
> ----- Original Message -----
> From: "Justin French" <justin@indent.com.au>
> To: "Dan McCullough" <McWC@rocketmail.com>; "PHP General List"
> <php-general@lists.php.net>
> Sent: Monday, August 19, 2002 3:09 PM
> Subject: Re: [PHP] A quick question - Help Please !
>
>
> > That's REALLY strange that the payment site doesn't return anything... So
> > the user just hits a dead-end or what? Can we see a test site?
> >
> > And the fact that it all needs to be secure makes it a little more
> > challenging.
> >
> > Essentially, what you need is for one form to POST to two separate
> > scripts... one local, and one on another server. My thoughts are that
> you'd
> > need to POST to a local script which produces the email AND THEN submits
> > info to the merchant.
> >
> > But the fact that this probably needs to be done:
> > a) with POST
> > b) with SSL
> >
> > Will prolly make it very tricky. Search the archives for "emulating POST"
> > or "faking POST", because I know it's been discussed before.
> >
> >
> > Yes, you probably CAN do it with javascript, but I'm not sure I'd be
> > comfortable relying on it AT ALL -- if it doesn't exist, then your site
> > breaks -- either the email or the merchant stuff will break if you rely on
> > JS.
> >
> >
> > Justin French
> >
> >
> > on 19/08/02 11:54 PM, Dan McCullough (McWC@rocketmail.com) wrote:
> >
> > > Hello everyone,
> > >
> > > I have a quick question.
> > >
> > > I am trying to do two seperate things on one submission, it would be
> easy if I
> > > was submitting to
> > > my own page, but I am submitting to a payment processor company, and so
> > > several things will occur
> > > off-site, and there is nothing that comes back from the payment
> processor when
> > > then payment is
> > > made so I can't handle it on the return. And so what I am doing now is
> when
> > > you land on the page
> > > to confirm that you want to place the order an email is created and sent
> to
> > > the owner, I would
> > > like that to only get sent when the submit button is clicked .. and yes
> I have
> > > tried onSubmit with
> > > it calling my php function.
> > >
> > > Any thoughts?
> > >
> > > thanks,
> > >
> > > dan
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > HotJobs - Search Thousands of New Jobs
> > > http://www.hotjobs.com
> >
> >
> > --
> > 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
>
=====
--------------------------------------------------------
"Theres no such thing as a problem unless the servers are on fire!"
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com