HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 25th, 2004, 08:06 PM
tourtickets tourtickets is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 2 tourtickets User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy how to send form data to another page with a form

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

Reply With Quote
  #2  
Old August 26th, 2004, 06:29 AM
selwonk's Avatar
selwonk selwonk is offline
Contributing User
ASP Free Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2004
Posts: 2,942 selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 6 Days 9 h 49 m 28 sec
Reputation Power: 62
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

Reply With Quote
  #3  
Old August 27th, 2004, 07:38 PM
UnSlain-HerO UnSlain-HerO is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: -33° 22' S 151° 22' E
Posts: 1 UnSlain-HerO User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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:
Originally Posted by scrubs
Actually, the only way I know to do this is by using javascript.
Here's an example:

<% any initial asp stuff here...%>

<form name=formname target=popup.asp>
<input name=input1>
<input name=input2>
<input name=input3>
<input TYPE="button" VALUE="Press Me"
onclick="
var q1=document.formname.input1.value; //these variable aren't necessary, but make the window.open shorter
var q2=document.formname.input2.value;
var q3=document.formname.input3.value;
window.open('./<your asp age>.asp?arg1='+q1+'&arg2='+q2+'&arg3='+q3, '','toolbar=0,location=0,directories=0,status=0,me nubar=0,scrollbars=0,resizable=0',true);
">

</form>
it work for me , but then i fiddled with the code and stuffed it like i usually do!

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > how to send form data to another page with a form


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT