Click to See Complete Forum and Search --> : Automatic form handling


divina55
04-28-2006, 12:25 PM
I have an ecommerce application that receives an order from an affiliate site, gets the purchaser shipping and billing information, processes the payment then needs to email a confirmation to the purchaser then pass the results of the purchase and the purchaser back to the affiliate.

An html form with <Body onload="javascript:document.form.submit()"> works just fine for this unless the purchaser has javascript disabled. In that case, I have a submit button but many purchasers are not clicking the button but leaving the site instead.

I can't pass get parameters because the amount of the data that needs to pass back to the afiliate may exceed the url character limit.

Does anyone know of another way to process an html form without requiring a submit button to be clicked?

Thanks

felgall
04-28-2006, 03:07 PM
If the form details are already available then you don't really need them in a form, you just need to use server side code to send the email directly. Exactly how you do it depends on which server side language you are using.

divina55
04-28-2006, 04:04 PM
I don't have any problem sending the email. The problem comes when I need to pass both the customer and the data back to the affiliate. If I didn't need to pass the customer back to the affiliate I could send the form then the email, but once the customer is back to the affiliate I have no more control.

I write in perl.