Form CheckBox question

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default Form CheckBox question


    Hello,

    I have this in my form.... the checkUnCheck(this); will uncheck values 1,2,3
    if None is chosen... Now when I submit this form, the output I get from
    $Avail is the word Array and not the actual content.... ('1,2,3' if I choose
    1,2,3)
    <td>
    <input type="Checkbox" name="Avail[]" value="1"
    onclick="checkUnCheck(this);">1&nbsp;
    <input type="Checkbox" name="Avail[]" value="2"
    onclick="checkUnCheck(this);">2&nbsp;
    <input type="Checkbox" name="Avail[]" value="2"
    onclick="checkUnCheck(this);">3&nbsp;
    <input type="Checkbox" name="Avail[]" value=""
    onclick="checkUnCheck(this);">None&nbsp;
    </td>

    Am I missing something??

    And no, I'm not a very experienced PHP developer.

    :-)

    Yves Arsenault
    Carrefour Infotech
    5,promenade Acadian
    Charlottetown, IPE
    C1C 1M2
    [email]yves@carrefour.peicaps.org[/email]
    (902)368-1895 ext.242
    ICQ #117650823

    Yves Arsenault Guest

  2. Similar Questions and Discussions

    1. CheckBox required on form?
      I have a form, and we need to have a checkbox that the user is required to check. Basically saying they read the disclaimer. Is there a way to...
    2. How do I use the form checkbox value?
      I'm creating a form that has multiple checkboxes. I want to use ActionScript to update a text box/area with the values each checkbox as the checkbox...
    3. Flash Form & Checkbox
      I'm having trouble changing this listbox code to checkboxes instead. Can you help? <cfselect name="binderyID" label = "Bindery Type"...
    4. Checkbox value in MX7 Flash Form
      I am testing multi-tab forms in MX7 using the last example from the HTML documentation for the cfformgroup tag. The cfdump just shows whether each...
    5. Yes/No checkbox in the form
      I have a field called action in a table, to check if something requires action the user must check the box. The field in the table is defined as a...
  3. #2

    Default Re:Form CheckBox question

    If you've echo-ed or printed an Array value, yes, you'll get 'Array' as
    result, try to var_dump the value, and check if it isn't all well.

    Rodrigo
    Rodrigo Webler 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