Greetings everyone !
I seek some help to retain checkbox state on redisplay.I only have one optional checkbox to indicate whether it's the user's first visit to the site
Form1:
[code=html]
<INPUT type="checkbox" name="guest" value="yes">
[/code]
[Please use CODE tags when posting source code. Thanks! --pbmods]
I tried it as below on Form2,but didnt work for me
Form2:
[code=html]
<INPUT type="checkbox" name="guest" value="yes" <?php if(guest == "yes"){echo " CHECKED";}?>>[/code]
Any ideas?
Thank you
I seek some help to retain checkbox state on redisplay.I only have one optional checkbox to indicate whether it's the user's first visit to the site
Form1:
[code=html]
<INPUT type="checkbox" name="guest" value="yes">
[/code]
[Please use CODE tags when posting source code. Thanks! --pbmods]
I tried it as below on Form2,but didnt work for me
Form2:
[code=html]
<INPUT type="checkbox" name="guest" value="yes" <?php if(guest == "yes"){echo " CHECKED";}?>>[/code]
Any ideas?
Thank you
Comment