I have been playing with forms and saw a tutorial on
Lynda.com about using flash for a form. I tried it and can't get
the results that I want. I want to prefill the fields from a
database and it just doesn't seem to work. What am I doing wrong?
I tried to "attach the code" but no button was shown to do
so. So here it goes raw
<cfset FirstName="Kirk">
<cfset LastName="Dickinson">
<h1>Form Test</h1>
<cfform method="post" preservedata="true"
preloader="no">
<cfinput type="text" name="First" label="First Name:"
visible="true" value="#FirstName#" size="30">
<cfinput type="text" name="Last" label="Last Name:"
value="#LastName#" size="30">
<cfinput type="button" name="Submit" value="submit">
</cfform>
This simple code works. When I change it to this:
<cfset FirstName="Kirk">
<cfset LastName="Dickinson">
<h1>Form Test</h1>
<cfform method="post" preservedata="true" preloader="no"
format="flash">
<cfinput type="text" name="First" label="First Name:"
visible="true" value="#FirstName#" size="30">
<cfinput type="text" name="Last" label="Last Name:"
value="#LastName#" size="30">
<cfinput type="button" name="Submit" value="submit">
</cfform>
It fails. The form gets created and displayed, but the
variables are not inserted into the fields.
Kirk