[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] form insertion of multiple checkboxes into db
Hey,
>Take a look at the mail_list column in userdb, as well as the
>[display...] tag used to call it on a foundation checkout.html
>
>Other than that, you would have to post your form code, as well as
>illustrate the data in the column.
>
If you get real desparate you could always just have a hidden variable
that form onsubmit populates using javascript so you end up submitting
effectively just another standard input.. e.g.
<script language="javascript">
function popField (oForm) {
with (oForm) {
fieldName.value = (check1.checked) ? check1.value : '';
fieldName.value += (check2.checked) ? check2.value : '';
fieldName.value += (check3.checked) ? check3.value : '';
}
</script>
<form onsubmit="popField(this);".....>
<input type="hidden" name="fieldName" value="">
....
<input type="checkbox" name="check1" value="a">
<input type="checkbox" name="check1" value="b">
<input type="checkbox" name="check1" value="c">
</form>
like i say ... if you get desparate .... ;)
Brent Kelly,
Zeald Ltd.
http://www.zeald.com.