[FX.php List] Check box es do work.
FHASELTINE at aol.com
FHASELTINE at aol.com
Thu Oct 26 16:56:13 MDT 2006
The checkbox dilemma
In the Filemaker Data base I have defined the field with a value list with
two values "checked" and " " or no value. the field is displayed as a check
box.
Then
The field can only have a value ="checked" or value=" ".
In the php coding I have
This coding works to create a check in the html coding. "<input
type="checkbox" name="chb1" value="checked" <?php echo($fieldData['chb1'][0]);?>>"
The HTML page has a check in the box when the field is checked.
The field can only have a value ="checked" or value=" ".
Then Posting using the following coding
"$field-> AddDBParam('chb1',$_POST['chb1']);" So if the value stays checked
it is posted as checked. if you uncheck it - it goes in with no value and
the field is unchecked. If you wish i am happy to send you the full coding.
Florence Haseltine
AIM: Fhaseltine
fhaseltine at aol.com
240-476-7837
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20061026/e33290a2/attachment.html
More information about the FX.php_List
mailing list