Is There A Way To Do This?

They have: 2 posts

Joined: Feb 2002

I've got a php order form that's collecting order information then sending the customer to a secure payment gateway to enter their cc information. The gateway will capture all the information from the form and e-mail it to me but there's no way to format it. The fields are all jumbled up and it's difficult to read and collate the information.

What I would like to do is split off some of the data and have it e-mailed to me and have the rest sent to the payment gateway (name, address, etc). I only want to have one "order" button on the form though. Is there a way to do this?

He has: 1,016 posts

Joined: May 2002

Are you using a 3rd party CC processor like 2CheckOut, RevEcom or such?

If the form your users fill out is on your server (your scripts) and once they've filled everything out they get sent to the CC processor, then it is possible to fire off an email right before the user is redirected to the CC processor's website.

So the answer to your question would be yes.

They have: 2 posts

Joined: Feb 2002

Hi Saeed - that's the set up. The form is on my web space and the user fills it in and then gets sent to the cc gateway to enter their cc number. Forgive me for being thick about this but how exactly how do I fire off the e-mail before the user is redirected? The form action is the URL of the cc gateway. Do I have to put something else in the form action? If it makes things any easier I have formmail installed too.

Thanks - Shelagh

He has: 1,016 posts

Joined: May 2002

I didn't know the form action was the URL of the CC gateway. Hmm, it _might_ be possible to add a script between there. I can't tell for sure unless I can take a look at it.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.