dianacastillo
Joined: 11 Jan 2011
Posts: 4
Posted: 2011-01-11 11:23
Back to top
Reply with quote
|
is there a way for the user to see yes or no as the options but it actually saves a 0 or 1 to the database?
thank you
|
doug
Joined: 10 Feb 2003
Posts: 1013
Location: Denver, Colorado (USA)
Posted: 2011-01-12 14:57
Back to top
Reply with quote
|
| Code: |
$opts['fdd']['hidden'] = array(
'default' => 0,
'input' => '',
'maxlen' => 1,
'name' => 'Hidden',
'options' => 'ACPVD',
'select' => 'D',
'sqlw' => 'TRIM("$val_as")',
'values2' => array('0' => 'No', '1' => 'Yes'),
'sort' => true
);
$opts['fdd']['deleted'] = array(
'default' => 0,
'input' => '',
'maxlen' => 1,
'name' => 'Deleted',
'options' => 'ACP',
'select' => 'D',
'sqlw' => 'TRIM("$val_as")',
'values2' => array('0' => 'No', '1' => 'Yes'),
'sort' => true
); |
|
|
Post new topic
Reply to topic
|
|
|