Jump to content

Checkbox help please?


Mr Chris

Recommended Posts

Hi Guys,

 

I have a database column which either holds the value 1 or 0.

 

Now if there is a 1 in this column I want to produce a checkbox button that is ticked, and if a 0 then nothing ticked.  So I thought it would work like this:

 

<input name="dayTwo[]" type="text" id="dayTwo" value="<?php echo $databaseArray['d2']?>" size="6" />

 

However, it does not seem to work?

 

Any suggestions?

 

Thanks

 

Chris

Link to comment
https://forums.phpfreaks.com/topic/69320-checkbox-help-please/
Share on other sites

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.