4 Replies Latest reply: Oct 5, 2011 6:10 AM by akk602 RSS

    can you combine 2 actions?

    Nevermynd Community Member
      I am wondering is there a way to activate 2 actions at once when the submit button is pressed?
      I have a form that I have set up to send info to a database which is activated by this "<%=MM_editActions%>"
      but I also have another script in another asp page named "RegFormMailer.asp" that sends the form owner an email.
      But I only know how to do one or the other.
      Can I put TWO actions in the action field in dreamweavers property panel?
      Something like "<%=MM_editActions%>" + "RegFormMailer.asp"?

      Thank you, I am VERY new to dynamic site/and scripting. Just used to static sites.
        • 1. Re: can you combine 2 actions?
          Newsgroup_User Community Member
          .oO(Nevermynd)

          >I am wondering is there a way to activate 2 actions at once when the submit
          >button is pressed?

          One form, one action. Of course you can do whatever you want in the
          processing script.

          > I have a form that I have set up to send info to a database which is activated
          >by this "<%=MM_editActions%>"
          > but I also have another script in another asp page named "RegFormMailer.asp"
          >that sends the form owner an email.
          > But I only know how to do one or the other.
          > Can I put TWO actions in the action field in dreamweavers property panel?
          > Something like "<%=MM_editActions%>" + "RegFormMailer.asp"?

          No. You have to combine them both on the server.

          Micha
          • 2. can you combine 2 actions?
            Nevermynd Community Member
            Michael, (or anyone) when you say I have to combine them on the server, can you elaborate a bit? I am very new to server application web design.

            Do you mean, put both tasks all in one script? I actually did try combining them, and it ALMOST works.
            It successfully sends the form info to the data base AND it sends an email to the form owner, the only problem is the inputed info is missing in the email...
            Like this......

            First Name:
            Last Name:
            Address:
            City:
            State:
            User Name:
            Password:

            Would someone perhaps be willing to look at my code and see if they can make both tasks work completely?
            Thank you!
            Ken

            • 3. Re: can you combine 2 actions?
              Newsgroup_User Community Member
              .oO(Nevermynd)

              >Michael, (or anyone) when you say I have to combine them on the server, can you
              >elaborate a bit? I am very new to server application web design.
              >
              > Do you mean, put both tasks all in one script?

              Yes, that's what I meant. Your script can do a hundred tasks if
              necessary. I just can't help you with ASP code (I'm on PHP).

              Micha
              • 4. Re: can you combine 2 actions?
                akk602

                @Nevermynd,

                Did you ever find a solution to this problem?

                I m having the same issue.

                 

                thanks