Insert form and submit to paypal
I have a paypal form on my site and I would like to insert a record, email and submit to paypal in one operation rather than on separate pages.
Any ideas?
Thanks
Nick
I have a paypal form on my site and I would like to insert a record, email and submit to paypal in one operation rather than on separate pages.
Any ideas?
Thanks
Nick
If you are using Paypal Standard, I'm pretty sure this isnt possible.
The form submission has to go to scr which means that you can't process any information through code on your page.
What is it you are trying to insert / email?
Cheers
Ian
OK, how about this then! Is there a way to have the form submit onload rather than waiting for the button to be clicked?
In this case I could send the email and or insert a record then redirect to a page which would submit the paypal and redirect to the paypal site.
Nick
it comes back to the question of what is it you emailing.
Are you emailing an order receipt?
if that is the case, you would be emailing the order receipt prematurely, the order would not be processed yet.
if it is just a notice of a potential sales, then you could have your form submit to itself, use the eCart Set Session Value behavior to store each form element value in a session variable, send the email, then redirect to a second page that uses hidden form elements to mirror the original form, set each hidden form element to use the session variables as the values. and use java script in the body onload function to submit the form:
javascript-form-submit.phtml
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.