Pass the value of a check box to action page

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Pass the value of a check box to action page

    Hi All, I know this is probably very simple but I can't figure it out. I have
    a checkbox on my forms page. When a user checks any one of the boxes I want to
    submit the name of the field to the database using the value= parameter. If I
    do something like the following I get a -1 in the database field

    <cfinput type="checkbox" name="checkbox1" value="checkbox1">

    How would I go about passing checkbox1 to the field in the databse.

    Thanks in advance


    EdmondsM Guest

  2. Similar Questions and Discussions

    1. How to pass a variable to a second page
      i have a page that i need to set a variable in and pass it to another page in my site but i cannot do it through a url because the second page once...
    2. Pass prameter from a page to another
      Hi, I have a page that calls a multiple frames page (ASP). I need to send parameters from the first to the multi frames page. If sending to a...
    3. Getting the ID of an element to check existence and pass variables.
      Thanks for the tips Ray! Okay I think I can explain better now. What my asp page displays are some records from a database table and a text box...
    4. Pass Variables to page that is Page ContentType="image/Jpeg"
      I'm wondering if I can pass variables to "TestForm.aspx" with the way I'm using it. It's acting as a jpeg image and looks like: <%@ Page...
  3. #2

    Default Re: Pass the value of a check box to action page

    I need to add that the format of the form is flash
    EdmondsM Guest

  4. #3

    Default Re: Pass the value of a check box to action page

    > Hi All, I know this is probably very simple but I can't figure it out. I
    have
    > a checkbox on my forms page. When a user checks any one of the boxes I
    want to
    > submit the name of the field to the database using the value= parameter.
    If I
    > do something like the following I get a -1 in the database field
    >
    > <cfinput type="checkbox" name="checkbox1" value="checkbox1">
    >
    > How would I go about passing checkbox1 to the field in the databse.
    I'm guessing that the database field type is numeric and you're trying to
    insert a string into a numeric field...

    --
    <mack />


    Neculai Macarie Guest

  5. #4

    Default Re: Pass the value of a check box to action page

    Hey Mack, thanks for the response. The field in the DB is text, an I am trying to pass text. Now if I don't use flash it works fine. But the client really wants the interface in flash.

    Maurice
    EdmondsM 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