Results 1 to 3 of 3

Thread: [RESOLVED] Looking to access this FORM from my web page

  1. #1

    Thread Starter
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Resolved [RESOLVED] Looking to access this FORM from my web page

    [edit] Question withdrawn - was going down the complete wrong direction here - forget you read this! [/edit]

    I'm looking to have my webpage do a GET to this CASHNET site - sample HTML from there documentation below.

    I tried putting this into an IFRAME - got no where.

    Tried using a FORMDATA object and jQuery .AJAX call.

    Thoughts?

    Code:
    <html>
     <head>
       <title>Our Checkout</title>
     </head>
     <body>
      <form method="get" action="https://commerce.cashnet.com/CheckoutName">
        <input type="hidden" name="itemcode" value="PSYCH-CONF"><br>
        <input type="hidden" name="amount" value="124.00"><br>
        <input type="hidden" name="itemcode2" value="PSYCH-LUNCH"><br>
        <input type="hidden" name="amount2" value="15.60"><br>
        <input type="submit" name="submit" value="Make Payment">
      </form>
     </body>
    </html>
    Last edited by szlamany; Oct 11th, 2021 at 03:35 PM.

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  2. #2
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,711

    Re: [RESOLVED] Looking to access this FORM from my web page

    Did you wind up handling the submit event, preventing the submit from taking place, then making an AJAX request using the desired values?
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  3. #3

    Thread Starter
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: [RESOLVED] Looking to access this FORM from my web page

    Quote Originally Posted by dday9 View Post
    Did you wind up handling the submit event, preventing the submit from taking place, then making an AJAX request using the desired values?
    I was handed that "html" as if I was going to use it somehow - that was bad info.

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

Posting Permissions

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



Click Here to Expand Forum to Full Width