Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: burzum - maaliskuu 29, 2006, 07:19:26 IP

Otsikko: Custom profile field problem: checkboxs are not recognized
Kirjoitti: burzum - maaliskuu 29, 2006, 07:19:26 IP
I've modded some custom textfields in my SMF 1.1.RC2 board following this tutorial http://www.unknownbrackets.com/tutorials/custom-profile

The Problem is now, that the script doesnt recognize a change of the checkbox. If checked it should insert/update the value to 1, if unchecked it should update/insert the value to 0.

                            </tr><tr>
                                <td><strong>Bogenschütze: DEBUGVALUE: ',$context['member']['options']['ffc_archer'],'</strong></td>
                                <td><input type="checkbox" name="default_options[ffc_archer]" value="1"', @$context['member']['options']['ffc_archer'] == 1 ? ' checked="checked"' : '', ' class="check" /></td>


Displaying the box as checked/unchecked works with this code. But why doesnt recognizes the script a change of the value? :(