PHP Classes

Noob questions about checkbox

Recommend this page to a friend!

      DrasticTools  >  All threads  >  Noob questions about checkbox  >  (Un) Subscribe thread alerts  
Subject:Noob questions about checkbox
Summary:I can't seem to get check boxes to save their state
Messages:1
Author:Matt Jacobson-Carroll
Date:2008-12-17 20:23:53
 

  1. Noob questions about checkbox   Reply   Report abuse  
Picture of Matt Jacobson-Carroll Matt Jacobson-Carroll - 2008-12-17 20:23:55
I saw that checkboxes are created by making the column a tinyint, and I did that. But when I put a check in the checkbox the data is not updated in the mysql database.

BTW, I am very new to this, so if I have done something stupid, please be gentle.

function rebuild_table() {
if (thegrid) $('grid1').empty();
thegrid = new drasticGrid('grid1', {
pathimg:"img/",
pagelength:30,
columns: [
{name: 'select', width: 40},
{name: 'HID', width: 40, displayname: 'HIP #'},
{name: 'Status'},
{name: 'Type'},
{name: 'Brand'},
{name: 'Model', width: 180},
{name: 'Serial_Num', width: 120, displayname: 'SN'},
{name: 'Location', width: 150},
{name: 'Sub_Location', width: 100, displayname: 'Sub Location'},
{name: 'Desc1'},
{name: 'Desc2'},
{name: 'Date_Added', width: 100, displayname: 'Date Acquired'},
{name: 'Original_Cost', width: 100, displayname: 'Original Cost'},
],
addparams:"&Type="+typeselector.value+"&Location="+delocation.value+"&Status="+destatus.value+"&Brand="+debrand.value
});
}