checkbox checked with php form post?

Posted by Patrick on Stack Overflow See other posts from Stack Overflow or by Patrick
Published on 2010-05-08T00:08:48Z Indexed on 2010/05/08 0:18 UTC
Read the original article Hit count: 163

Filed under:
|

how do I check a checkbox? I've tried 1, On, Yes that doesn't work. putting the worked "checked" alone works but then how do I check with php after form post of the checkbox is checked?

<input type="checkbox" class="inputcheckbox" id="newmsg" name=chk[newmsg2] value="1" />

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql