If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Passing values to a page using the post method without a form

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-12-05, 13:07
oliflorence oliflorence is offline
Registered User
 
Join Date: Aug 2004
Posts: 96
Passing values to a page using the post method without a form

Hi,
I need to pass values to a payment processor following a purchase, I am entering the new order from an ASP page and then redirect to the payment processor, I could pass the variable such as the price, order ID etc using the string and this works, however if the user change the string and reload then they will be charged a different amount etc..

Is there a way to pass the variable using the form post method without having to ask the user to click on the button to be redirected?

Thanking you in advance
Olivier
Reply With Quote
  #2 (permalink)  
Old 10-14-05, 22:29
MrWizard MrWizard is offline
Registered User
 
Join Date: Mar 2003
Location: Atlanta, GA
Posts: 191
Use the XMLHTTP object. You can do an HTTP Post or Get from ASP code using this object.
__________________
Tim
Reply With Quote
  #3 (permalink)  
Old 10-26-05, 12:38
chuck59 chuck59 is offline
Registered User
 
Join Date: Oct 2005
Location: Karachi
Posts: 6
MrWizard, can you please show us an example of posting data to a field, using POST method?
for example, if i have an html form with 2 fields, username and password, how can i pass values to both of these fields by using XMLHTTP?

thanks in advance.
Reply With Quote
  #4 (permalink)  
Old 10-26-05, 18:58
MrWizard MrWizard is offline
Registered User
 
Join Date: Mar 2003
Location: Atlanta, GA
Posts: 191
You don't post data to a field... you post it to a page, and the asp code on the page can put it into a field.

Check this out for a full discussion of XMLHTTP

http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=61
You can just google on XMLHTTP and you'll get a lot more.
__________________
Tim
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On