|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello,
I was wondering if someone could help me figure out how to send the data that i get from the form in page 1 (html page with javascript) to the form in page 2 (asp page) which will then be directed to a secure server so that the customer can pay with a credit card?? The whole reason I did that was because i need to have a field that was a calculated field in order to send the customer to the secure server. Right now I have that calculated field working, but I need to post the information of the products that the customer chose to page two, which will then be directed to the secure server. Let me give you an example: Lets say Im selling different types of pants, and when you choose one time of pants, the drop down menu populates with three different colors, each at a different price. Let say that you may want to buy 2 pants that are blue and 2 pants that are gray. Can anybody tell me how to do that type of stuff?? thank you in advance for any help. Andre |
|
#2
|
||||
|
||||
|
Hi
First of all, you don't need to make any changes to the first page. All you need to do is create an interim page which does some calculation, adds or changes fields and then reposts itself to the credit card page. I'd even go as far as to not make it repost, but make it an order confirmation with a Next button I'm not sure exactly what you need confirming? You just need to POST page 1, read Request.Form values in page 2, add INPUT TYPE="HIDDEN" values for extra fields on the page and then get everything posted to the credit card page Sorry if I've missed the point somewhere To auto-post a form: Code:
<html> <body onLoad="document.MyForm.submit();"> <form name="MyForm"> <input type="xxx" name="yyy" value="zzz"> </form> </html> MK |
|
#3
|
|||
|
|||
|
Im Tryin to do a similar thing on my website but im tryin to pass variables to a new pop-up window. i was searching
on google for the answer and i came accross a thread in this forum http://forums.aspfree.com/t21089/s.html it has some good ideas Quote:
![]() |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > how to send form data to another page with a form |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|