Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [jbzipperian] Checkbox Question

Quote Reply
Re: [jbzipperian] Checkbox Question In reply to
The easiest way to do it might be with a little bit of Javascript and a hidden field. So, you'll end up with something like this:

Code:


<input type=hidden name=post_mycheckbox value=<%if post_mycheckbox%>1<%else%>0<%endif%>>
<input type=checkbox onclick="var c; if (this.checked) { c = 1 } else { c = 0 } document.post.post_mycheckbox.value = c">

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Subject Author Views Date
Thread Checkbox Question jbzipperian 1309 Aug 2, 2002, 7:25 AM
Thread Re: [jbzipperian] Checkbox Question
Jagerman 1263 Aug 2, 2002, 3:32 PM
Post Re: [Jagerman] Checkbox Question
jbzipperian 1255 Aug 3, 2002, 4:00 AM