11-16-2016, 01:54 PM
Yeah. I couldn't test your particular user_settings.php last time.
Ok. Here's what I did. I made a new user_settings.php that is designed to go in the usersc folder and then only added the checkbox feature. One of the issues is that you need the page to refresh when you submit in order to recheck/uncheck the boxes on the page. Because of this, I did a more generic "settings updated" message if all the validation passes so I can show the message after the refresh.
Here's the link that works for me. Then you can go back and add those other fields like country.
http://hastebin.com/lagizihoxe.scala
Also, just to make sure we're on the same page, those db_columns are int(1) in the database.
Ok. Here's what I did. I made a new user_settings.php that is designed to go in the usersc folder and then only added the checkbox feature. One of the issues is that you need the page to refresh when you submit in order to recheck/uncheck the boxes on the page. Because of this, I did a more generic "settings updated" message if all the validation passes so I can show the message after the refresh.
Here's the link that works for me. Then you can go back and add those other fields like country.
http://hastebin.com/lagizihoxe.scala
Also, just to make sure we're on the same page, those db_columns are int(1) in the database.