Skip to main content
Participant
March 21, 2007
Question

submitting data from a flash form in coldfusion

  • March 21, 2007
  • 1 reply
  • 643 views


I am completely new to using flash forms in coldfusion web applications. I created a <cfrom format=flash> type form with a number of text input fields, checkboxes and radio buttons. Now I simply want to submit the form to obtain the data to put into a MySQL database and to use for various other purposes. I have spent a couple of days surfing the net to find out the simpliest way to do this, but am completely confused on what to do. The Coldfusion documentation makes reference to an ActionScript named submitForm(), but I cannot seem to find a clear explanation of how to use this function. I have also seen some documentation on using getURL() to pass the form data to a cfm, but not sure how to use this. I tried to use the getURL() funciton in the onClick event of a button, but did not seem to work. I know nothing about ActionScript, but have used JavaScript, PHP and ColdFusion to develop dynamic web pages before. If some one could point me in the right direction, or provide a simple example and explanation of an easy way to submit data from a Flash form created in Dreamweaver 8 and ColdFusion 7 it would be greatly appreciate.
This topic has been closed for replies.

1 reply

existdissolve
Inspiring
March 23, 2007
As far as I've seen, you should be able to submit the format=Flash form in the exact same way as a plain old html form. A caveat to this, of course, is that this only works with the generic input types; if you are trying to update, insert and delete cfgrid items, that is another story.

But anyway, what I did on mine, just like on all my old html forms, was to put both a submit and MM_InsertRecord field on my form. To handle the form submission, I simply looked for the state of "MM_InsertRecord", and proceeded like normal. Here is a sample of one of mine: