Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2004
    Posts
    96

    Unanswered: 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

  2. #2
    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

  3. #3
    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.

  4. #4
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •