Submitting Forms to two differrent files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nedu
    New Member
    • Nov 2006
    • 65

    Submitting Forms to two differrent files

    Hi ,

    Frnds is it possible for me to submit the information from one file to two files. Plz help me.

    Thanks & Regards

    (M. Nedu . . .)
  • darkdirk1
    New Member
    • Oct 2006
    • 50

    #2
    A very simple solution would be to just post the data to the first script, and use
    Code:
    <!--#include file="otherscript.asp" -->
    Otherwise it for some reason you totally need to do it as described, well it's going to require javascript.
    You could either use 2 form tags w/ different actions on them and submit each using document.form1. submit() - document.form2. submit()

    Or more tricky, one form tag which you modify the action attribute using getElementAttri bute......

    This is assuming you want both post operations to occur from a single button click.


    I like the first option best, because it's less hoops to jump through for such a simple requirement.

    Comment

    Working...