Help with online form

Ask a Question related to Coldfusion - Getting Started, Design and Development.

  1. #1

    Default Help with online form

    Hi all,

    The Colfdusion applications I write are pretty basic stuff so I?m still very
    much a beginner:

    Sometime ago I created an online voting form.

    The candidates varied as the form is used regularly for different elections so
    candidates are inputted into a MySql table and then coldfusion is used to
    create a form using these values inputted into a drop down list. The voters
    simply select their choice, which is inputted into a results table

    This has worked fine but I've now been asked to create the voting form in such
    a way that voters must select four candidates rather than one!

    This is where I'm asking you advice:

    I could have four lists but it would mean that voters could vote for the same
    candidate more than once.

    I thought of cfm generating a list of candidates with radio buttons next to
    them for selection but that only allows one selection... Tick boxes can be any
    number of selections. I could use radio buttons and run the applications four
    times I guess but that seems a bit laborious.

    Any advice would be welcome.

    Thanks,

    Paul.


    Paul1 Guest

  2. Similar Questions and Discussions

    1. How do you submit an online form?
      I am using Contribute to edit our webpage, it has been fine for what we've needed so far, but that has been very basic stuff. We're now wanting to...
    2. Online Form to PDF
      I was wondering if there was a way to, once a form has been submitted, to export a pre made PDF document that the user can print off and send in...
    3. Online Acrobat Form?
      Hi- I am trying to figure out if this is possible. We have a one page questionnire (form). I need to be able to send it out via the web and have...
    4. online form to print?
      Ok, I did some searching but could not find exactly what I am needing. I want to design a online form that someone can go to my website and fill...
    5. Online Form Help Please
      I?m attempting to use the drag/drop behavior formsunder internet/forms to create a standard online form for a web site. Under form post-Field...
  3. #2

    Default Re: Help with online form

    Use Checkboxes. Then when they submit the form use CF to check that they have
    chosen the correct number. Also, you can use JavaScript as well but still
    definitely use the CF check as JavaScript can be turned off!

    Stressed_Simon Guest

  4. #3

    Default Re: Help with online form

    If you want to still use the drop down list you could setup a cfif statement to
    check to see if the voters selected the candidates name multipule times before
    your form sends the information. if they did alert them to select 4 different
    candidates.


    cscalzo Guest

  5. #4

    Default Re: Help with online form

    Cheers all......I find the biggest problem with being a self taught beginner isn't CF (It seems pretty straightforward). It is sussing out how to go about things...

    Thanks,

    Paul.
    Paul1 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