On my site, I let users change the details of their account, including whether they're a not-for-profit organization. They originally set this to 'Y' or 'N' when they register via a checkbox. When they're on the screen to change their details, I want the choice that they made upon registration to be made apparent in the checkbox on the update page. In other words, if they are not-for-profit, I want the checkbox to be checked, otherwise unchecked. Basically, I'm just reading information from the database and reflecting it in the form. I'm thinking something like this:
<input name="not_for_profit" type="checkbox" id="not_for_profit" value="<?php if ($row['not_for_profit'] == 'Y') Then do something;?>">
Obviously, it's the "Then do something" that I need help with. How would I do this? Or is there an easier way?