tags:

views:

19

answers:

1

I'm trying to create a quoting mechanism for my website that will collect a) information about the user (name, email, etc.) and b) four or five values (item quantities) that will be used to generate a quote.

What I want to do is to have all of the information (both sets a and b) sent to me using formmail, and for the values to be passed on to the next page, where they can be used by my calculating script. I'm not sure how to do this without using two separate forms (and I'm not 100% sure how to do it even with two forms). It seems that the simple way to move the values is to use GET, whereas formmail uses POST.

Is there a way to use only one submit button, email all info to me, pass just the values to my script, and display them on another page?

+1  A: 

If you are not scared of some javascript you can easily use XMLHttpRequest to post the form async to mail before letting the action of the form post to the next page...

Sky Sanders
@Nifle, thanks but it was intentional. lol.
Sky Sanders