Jump to content

[SOLVED] Remember the status of a checkbox on postback


webref.eu

Recommended Posts

Hi All

 

I have the following checkbox: 

 

<input type="checkbox" name="chkSubscribeToNewsletter" value="1" />

 

how do I make sure if they user has decided to check this, that this status gets remembered when I post back the form to itself and the form needs do be displayed again because other fields contain errors?  Currently when this happens I am losing the check if the user put one in. 

 

Rgds

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.