Post multiple forms to same page

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Terri

    Post multiple forms to same page

    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


  • Atrax

    #2
    Re: Post multiple forms to same page

    you could have a hidden field in each form which holds a value telling
    the destination page which code to run.


    easy.




    _______________ _______________ __________
    Atrax. MVP, IIS


    newsflash : Atrax.Richedit 1.0 now released.


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

    Comment

    • CJM

      #3
      Re: Post multiple forms to same page

      or a simple querystring:

      ..../process.asp?pag e=1

      CJM

      "Atrax" <atrax@dontspam atrax.co.uk> wrote in message
      news:OeTPk4y3DH A.1760@TK2MSFTN GP10.phx.gbl...[color=blue]
      > 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![/color]


      Comment

      Working...