Pass URL Parameter from html form to flash form


in cf, have link form update students attendance; takeattendancehv1.cfm?studentid=#allstudents.studentid# . i'm using flash form in takeattendancehv1.cfm populate studentid. on flash form, studentid appears on form, when submit form, error: element studentid undefined in url . here studentid form field in flash form: <cfinput name= "studentid"
maxlength = "10"
size = "10"
value="#attendance.studentid#"
message = "student id"
validate="integer">

i'm pretty new @ creating flash forms, know best practice populating url parameter 1 page when using flash. can lead me in right direction.
thank you.

check cfform method, if have set post, result returned in form.scope.

if you're debugging, try doing cfdump on form , url scopes, you'll see data is.

one suggestion stick 1 scope , convert necessary. if navigation link bring form link, in code;

<cfparam name="url.studentid" default="">
<cfparam name="form.studentid" default="#url.studentid#">

<cfform name="myform" method="post" ....

<cfinput type="hidden" name="studentid" value="#form.studentid#"....

then check form scope in template handles form submission.


More discussions in ColdFusion and Flash Integrations


adobe

Comments

Popular posts from this blog

Thread: PKI Client 5.00 install (for eToken Pro)

ATmega2560-Arduino Pin Mapping

Crossfader Arduino Tutorial