我個頁係,要求人地tick o的checkbox... (d格仔之間冇關連,唔係multiple-choice)....
d格原先已經tick左... 佢地submit左之後... 就setcookies.... 下次返返o黎o既時候,d tick o個係道... 即係假如有tick o既下次返o黎就有,冇tick o既2就冇..
唔用session... 我試過:
<input ........ checked = "<?php if (!isset ($_COOKIE['XXX'])) {} else {echo "checked";} ?>"/>
唔得... 我又試過:
<input ....... checked = "<?php if ($_COOKIE['XXX'] != "no") {} else {echo "checked";} ?>"/>
又唔得..
幫幫手,幾急...