phpbms

Setting the value of a checkbox based on what is selected in a list

冷暖自知 提交于 2019-12-25 12:44:49
问题 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

Setting the value of a checkbox based on what is selected in a list

依然范特西╮ 提交于 2019-12-25 12:44:06
问题 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