Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default very quick question

    In my database a field is designated as 0 or -1 . When i make my form how do
    i set up the drop down menu so that the user chooses yes or no and these
    represent 0 or -1 ?

    Much appreciated

    search page
    <cfquery name="English" datasource="simple"> ( English is the language the
    user can reply yes or no to)
    SELECT Simple.???????
    FROM Simple

    </cfquery>

    <select name="English">
    <cfoutput query="English">
    <option value="#English#">#English#</option>
    </cfoutput> </select>

    I hope you can all understand

    Best Regards


    quiero mas Guest

  2. Similar Questions and Discussions

    1. Quick CSS question
      Hi, I have a css file that I used when building my template. Now that I'm building additional pages from the template, do I edit the same css file...
    2. quick MX question....
      how do you get rid of that window on the right where it says 'color swatches', 'components', etc.. it really bothers me, it makes the working area...
    3. Quick question
      if you want to select top 100 records, you will use SELECT TOP 100 * FROM tableName Is there anyone knows how to find bottom 100 records? ...
    4. A Quick Question
      Does anyone know if it is possible to create a Flash movie that has the ability to let the user click on a button to begin the installation of a...
    5. QUICK SSA QUESTION
      AIXers, I'm looking for a quicker way to determine the physical locations of ssa drives in a SSA drawer w/o having to use diag/ssa service aides...
  3. #2

    Default Re: very quick question

    hello quiero !!!

    u cud use the following code :

    <select name = "english_lang">
    <option value=""></option>
    <option value="1">Yes</option>
    <option value="0">No</option>
    </select>


    regards..
    kel

    leuqcar Guest

  4. #3

    Default Re: very quick question

    Please read some usability studies.

    If this can only be yes or no, use a checkbox.

    Selectors annoy the snot out of many (most?) web users and have been proved to greatly increase entry errors.

    MikerRoo Guest

  5. #4

    Default Re: very quick question

    I agree with MikerRoo. For simple yes or no options, radio buttons are more intuitive and easier to use, providing a higher level of usability.








    mxstu Guest

  6. #5

    Default Re: very quick question

    Thanks everyone for your time to respond. I have thought about radio buttons
    and check boxes but i wanted to kept continuity.
    i will see how all ideas work and get back to youi all

    again thanks for your input

    regards
    quiero mas

    quiero mas Guest

  7. #6

    Default Re: very quick question

    <cfquery name="English" datasource="simple"> ( English is the language the user
    can reply yes or no to)
    SELECT Simple.English
    FROM Simple
    </cfquery>

    Your code has quite a few problems. Assuming your database table is
    called preferences , fix it with something like:



    <cfquery name="languageQuery" datasource="simple">
    SELECT userLanguage FROM preferences
    WHERE userID = '#input_ID#'
    </cfquery>

    <!--- English is the language the user can reply yes or no to --->
    <cfoutput query="languageQuery">
    #userLanguage#:&nbsp;<select name="#userLanguage#">
    <option value="yes" selected>yes</option>
    <option value="no">no</option>
    </select><br><br>
    </cfoutput>

    BKBK Guest

  8. #7

    Default Re: very quick question

    thanks alot - actually what i am trying to use is
    1. let a user decide which language they want
    2. pull the apropriate information fom a few different tables

    project background: a multilingual hospital guide for non japnese residents
    here in japan.
    so i have each hospital and its information and then the

    quiero mas 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