Professional Web Applications Themes

ASP, FORMS, POST METHOD And Post with out form(???) - ASP

Lets see if I can decribe, this... I have a form on an html page, that will call a remote site with a post method. Prior to running off to the remote site (over which I have no control) I want to save the contents of form to a local database. My thought is I can use the onSubmit event to call some code to accomplish this. My thought was a I would call a call the page again and save the data(mypage.asp?action=saveformdata) What I can not figure out how to do is to then 'post' the form off to ...

  1. #1

    Default ASP, FORMS, POST METHOD And Post with out form(???)

    Lets see if I can decribe, this... I have a form on an
    html page, that will call a remote site with a post
    method. Prior to running off to the remote site (over
    which I have no control) I want to save the contents of
    form to a local database. My thought is I can use the
    onSubmit event to call some code to accomplish this.

    My thought was a I would call a call the page again and
    save the data(mypage.asp?action=saveformdata) What I can
    not figure out how to do is to then 'post' the form off to
    the remote page from ASP.

    So, q1> I am just lost and going the wrong direction on
    this?
    q2> is this even possible?
    q3> is there a better way to do this?

    Don Glover the younger Guest

  2. #2

    Default Re: ASP, FORMS, POST METHOD And Post with out form(???)

    have the local page POST to YOUR PAGE, then build another FORM with the same
    inputs all filled in with the values and use a clientisde form.submit() to
    POST to the remote page.

    --
    ----------------------------------------------------------
    Curt Christianson (Software_AT_Darkfalz.Com)
    Owner/Lead Designer, DF-Software
    [url]http://www.Darkfalz.com[/url]
    ---------------------------------------------------------
    ...Offering free scripts & code snippits for everyone...
    ---------------------------------------------------------

    "Don Glover the younger" <corwynkolvir.com> wrote in message
    news:02b001c348e9$0faa6170$a301280aphx.gbl...
    > Lets see if I can decribe, this... I have a form on an
    > html page, that will call a remote site with a post
    > method. Prior to running off to the remote site (over
    > which I have no control) I want to save the contents of
    > form to a local database. My thought is I can use the
    > onSubmit event to call some code to accomplish this.
    >
    > My thought was a I would call a call the page again and
    > save the data(mypage.asp?action=saveformdata) What I can
    > not figure out how to do is to then 'post' the form off to
    > the remote page from ASP.
    >
    > So, q1> I am just lost and going the wrong direction on
    > this?
    > q2> is this even possible?
    > q3> is there a better way to do this?
    >

    Curt_C [MVP] Guest

  3. #3

    Default Re: ASP, FORMS, POST METHOD And Post with out form(???)


    In a word.. "DOH!"

    sometimes you just don't see the forest for the trees (or some such
    other pithy statement)

    Thanks.
    Don Glover, the younger
    C, VB programmer:
    Have Network, will program.


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Don Glover Guest

Similar Threads

  1. redirect but with post data - mimick form post behaviour
    By LuckyNinja in forum Coldfusion - Advanced Techniques
    Replies: 4
    Last Post: April 14th, 05:58 PM
  2. How to post some data in form of POST action of forms in asp?
    By Mehdi Mousavi in forum ASP Components
    Replies: 1
    Last Post: September 19th, 05:16 PM
  3. GET or POST method??
    By John Davis in forum ASP
    Replies: 1
    Last Post: August 22nd, 01:02 AM
  4. Replies: 0
    Last Post: July 23rd, 01:24 PM
  5. Post method="form" does not work on server
    By Justin in forum Windows Networking
    Replies: 0
    Last Post: July 1st, 12:07 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139