Hey everyone!
Checkbox's, Forms and MySQL
Started by Bioshox, Mar 01 2010 09:22 AM
4 replies to this topic
#1
Posted 01 March 2010 - 09:22 AM
|
|
|
#2
Posted 01 March 2010 - 10:34 AM
I think something is missing here?
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall
I study Information Systems at Karlstad University when I'm not on CodeCall
#3
Posted 01 March 2010 - 10:59 AM
Apparent Browser Fail!
Okay,
I'm looking at having a Guest Message that is shown to guest and is personalized via the ACP;
Id like there to be a check box option that asks the admin if they want the guest message to be displayed or not.
But I'm not sure how to do this, I know how to code the IF statement, but id like the values of the check box to be stored in a MySQL database, and the check box to be checked or unchecked accordingly to the users selection, iv never really used any check boxes in my forms before.
Thank's in advance.
Okay,
I'm looking at having a Guest Message that is shown to guest and is personalized via the ACP;
Id like there to be a check box option that asks the admin if they want the guest message to be displayed or not.
But I'm not sure how to do this, I know how to code the IF statement, but id like the values of the check box to be stored in a MySQL database, and the check box to be checked or unchecked accordingly to the users selection, iv never really used any check boxes in my forms before.
Thank's in advance.
#4
Posted 02 March 2010 - 01:33 AM
#5
Posted 02 March 2010 - 11:50 AM
Well in the database, if I understand you correctly, would have a value for "showing" or not... boolean or int I guess. 1 for yes 0 for no. Just be able to change this in your current admin panel. If it's a 1 then display it :]
Post up some code, we like to look at pretty code!
Post up some code, we like to look at pretty code!


Sign In
Create Account


Back to top










