Pass URL Parameter from html form to flash form

Ask a Question related to Coldfusion Flash Integration, Design and Development.

  1. #1

    Default Pass URL Parameter from html form to flash form

    In CF, I have a link to a form to update a students attendance;
    takeattendancehv1.cfm?StudentID=#allstudents.Stude ntID# . I'm using a flash
    form in takeattendancehv1.cfm to populate the studentID. On the flash form, the
    studentID appears on the form, but when I submit the form, I get this error:
    Element STUDENTID is undefined in URL . Here is my studentID form field in my
    flash form: <cfinput name= "studentID"
    maxlength = "10"
    size = "10"
    value="#attendance.StudentId#"
    message = "Student ID"
    validate="integer">

    I'm pretty new at creating flash forms, but would like to know the best
    practice for populating a URL parameter from one page to another when using
    Flash. Can someone lead me in the right direction.
    Thank you.

    keann Guest

  2. Similar Questions and Discussions

    1. flash form fails to pass to cf page
      I have a flash form that when submitted passes 4 text fields to www.promegasigns.com/thanks.cfm. The action script for the send button in the...
    2. Cannot pass form field variable from Flash form to CFC
      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...
    3. Converting a HTML form to a Flash one
      I'm developed my first login framwork for a Coldfusion application using basic html tags however I want to now convert this form into a flash one....
    4. how do I pass the FLASH version of the form variable tothe query in CF 7.0
      I'm trying to convert a rather long form written in CF 6.1 to CF 7.0. The basics ar this: I built a grid that contains participant names, clicking...
    5. GET VARIABLE FORM HTML TO FLASH
      Is it possible to transmit to flash a variable from html page? for exemple with PHP from HTML i write like this : exemple.php?variable=XXXXX ...
  3. #2

    Default Re: Pass URL Parameter from html form to flash form

    Check your cfform method, if you have it set as post, the result will be
    returned in the form.scope.

    if you're debugging, try doing a cfdump on the form and url scopes, you'll see
    where your data is.

    One suggestion is to stick with one scope and convert as necessary. So if the
    navigation link to bring up the form is a link, then in the 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 the form scope in the template that handles the form submission.

    c_wigginton Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139