Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Participant ,
Mar 08, 2011 Mar 08, 2011

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)?

938
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advocate , Mar 08, 2011 Mar 08, 2011

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

Jason

Translate
Advocate ,
Mar 08, 2011 Mar 08, 2011

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

Jason

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 08, 2011 Mar 08, 2011

Well,

I can easily post to either site.

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 08, 2011 Mar 08, 2011

Another Question.

I did what you suggested and I am getting an error message.

"The column name Thank you for your submission. is invalid"................................

SO it looks like I got to the other server but how do I avoid the above error ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Mar 08, 2011 Mar 08, 2011
LATEST

I dunno.  What does your <cfhttp> look like?  Are you sending a column named "Thank you"?

Jason

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources