Post multiple forms to same page

Discussion in 'ASP General' started by Terri, Jan 20, 2004.

  1. Terri

    Terri Guest

    I have form1.asp which contains a form which is posted to and processed by a
    page called process.asp. I want to create a second form on form2.asp and
    also post it to process.asp. On process.asp I would execute different stored
    procedures conditionally based on where the form is submitted from. How can
    I tell which page the form is submitted from?

    I think I should be able to have a hidden form field on my forms and post
    that to process.asp.

    Is there a better or preferred method.?

    Can I combine these three pages on one asp page?

    Thanks
    Terri, Jan 20, 2004
    #1
    1. Advertising

  2. Terri

    Atrax Guest

    Atrax, Jan 20, 2004
    #2
    1. Advertising

  3. Terri

    CJM Guest

    or a simple querystring:

    ..../process.asp?page=1

    CJM

    "Atrax" <> wrote in message
    news:...
    > you could have a hidden field in each form which holds a value telling
    > the destination page which code to run.
    >
    >
    > easy.
    > USENET...get rewarded for it!
    CJM, Jan 20, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alan Silver
    Replies:
    9
    Views:
    551
    Alan Silver
    Feb 1, 2005
  2. Jason
    Replies:
    2
    Views:
    3,095
    Kevin Spencer
    Sep 28, 2005
  3. =?Utf-8?B?UHVuaXNoZXI=?=

    Need same viewstate for same page across multiple servers

    =?Utf-8?B?UHVuaXNoZXI=?=, Mar 23, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    403
    John Timney \( MVP \)
    Mar 23, 2006
  4. Mike Gleason jr Couturier

    MVC - Multiple forms on same page using same controller action

    Mike Gleason jr Couturier, Mar 5, 2009, in forum: ASP .Net
    Replies:
    1
    Views:
    4,282
    bruce barker
    Mar 6, 2009
  5. Gorge Lucas

    multiple forms on the same page?

    Gorge Lucas, May 4, 2009, in forum: ASP .Net
    Replies:
    4
    Views:
    5,982
    Gorge Lucas
    May 4, 2009
Loading...

Share This Page