Skip to main content
Inspiring
March 8, 2011
Answered

Forms : <form method="POST" to 2 different pages

  • March 8, 2011
  • 1 reply
  • 965 views

I have a form that I need to post the info to 2 different places like this

STEP 1

<form action="enroll1.cfm" method="POST" id="1">

10 Form Fields

</form>

>>>>> Do Database insert

STEP 2

Now I need to take that same form info and post it to another url  so that it can be inserted in another database at another company.

Like this

<form action="enroll2.cfm" method="POST" id="1">

10 Form  Fields

</form>

>>>>> Do Database insert

I get the first form posted and the data gets inserted into the database but now how do I pass the 10 form fields to the other url (Step 2)?

    This topic has been closed for replies.
    Correct answer 12Robots

    Look at using <cfhttp> from your step 1 processing to send the data onto the other site.

    Jason

    1 reply

    12Robots
    12RobotsCorrect answer
    Participating Frequently
    March 8, 2011

    Look at using <cfhttp> from your step 1 processing to send the data onto the other site.

    Jason

    weezerboyAuthor
    Inspiring
    March 8, 2011

    Well,

    I can easily post to either site.

    But Where would  I use the  -- in the post of   step 2