Setting the value of a checkbox based on what is selected in a list
问题 I am working in the confines of a CMS system, which defines certain fields which can be used to make forms for use within the application in PHP. The list function has the signature: function inputBasicList ($id,$value = "",$list = array(), $displayName = NULL, $displayLabel = true) I use it thusly: $theinput = new inputBasicList("type",$therecord["paymenttype"],array("Cash"=>"cash","Credit"=>"credit"), "Payment Type"); Likewise, there is a checkbox, which has the signature: function