Re: A quick question - Help Please !

From: Date: Mon, 19 Aug 2002 15:47:56 +0000
Subject: Re: A quick question - Help Please !
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-113214@lists.php.net to get a copy of this message
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 >

« previous php.general (#113214) next »