Forum Moderators: coopster & phranque

Message Too Old, No Replies

Pulling from Database

         

Maine Copper

7:23 pm on Apr 2, 2003 (gmt 0)

10+ Year Member



This is what I need, is it possible. If so where should I look for info.

I have a form. on this form is MULTIPLE checkboxes. When people check a box and submit it it gets put into the data base as on or off. Is there a way when the people log back in to have the checkmarks appear where they put them before?

This is where I am getting really messed up. Once you write to the database with on you can't turn them off which is what i want. But you cannot submit it again with another on to an on. Make sense? I hope so.

bcolflesh

7:29 pm on Apr 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



On the form page, you need a query for their last entry, then an if...then statement to display the checkbox. (Assuming yes = 1 and no = 0) If yes = 1, display checkbox checked, else display checkbox.

Regards,
Brent

andreasfriedrich

7:57 pm on Apr 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



php to add the value of ANY ticked box to a message [webmasterworld.com] contains example PHP [php.net] code to tick checkboxes according to the value of
$data
.

Andreas