coldfusion flash integration:
hello,
could someone please help me with an issue i'm having....
i'm trying to pass data from flash form fields into my coldfusion component
using a insert into (mysql statement)...
but i can't add any data to my database....
<cfcomponent>
<cffunction name="InsertData" access="remote" returntype="string">
<cfquery datasource="mysql2" name="InsertData">
INSERT INTO newtable2 (NAME_USER, NAME_EMAIL)
VALUES ("#name#", "#email#")
</cfquery>
<cfreturn InsertData>
</cffunction>
</cfcomponent>
and i'm getting the following error...
Variable name is undefined.
my UI Input text field are names: name & email...
i've done all the bindings correctly..(from webservice to input field)
i've set a WSDL URL and operation name
i've added the getURL to my submit button that goes to a CFM
page with the following code...
<cfinvoke webservice="someURL.cfc?wsdl" method="InsertData"
component="mysql.myCFC" returnvariable="InsertData"></cfinvoke>
Am i doing something wrong ?
and that should input the data into the database but it's not...
could someone PLEASE help me with this Data Integration issue...
i just can't figure out why the data won't pass....
I need this to work for a project so any help in the right direction with be
great :)
thank you for all your help in advance
greg carron
flash programmer
greg@kingweb.com