а

form combo used connector can't display checkbox


#1

Hi,

I have one question between form, combo, and connector. I used the form combo that included the checkbox. Used the connector it can display the value in combo’s box, but it can’t display the checkbox.
Could you tell me what problem is.
Many Thx.

Json :

{type: "combo",comboType: "checkbox", name: "company_name", label: "Company", connector: "connector/name_combo.php", size: 3, offsetTop: 1},

using name_combo.php display xml

[code]<?php

function userSecurityFormDataA(){
$sql1 = “SELECT * FROM user”;
$res1 = mysql_query ($sql1);
if($res1){
while($row1=mysql_fetch_array($res1)){
print ("<option value=’".$row1[‘companyName’]."’> <company_name>".$row1[‘companyName’]."</company_name> selected=‘true’ ");

   }
}else{
	echo mysql_errno().": ".mysql_error()." at ".__LINE__." line in ".__FILE__." file<br>";
}

}

//XML HEADER
if ( stristr($_SERVER[“HTTP_ACCEPT”],“application/xhtml+xml”) ) {
header(“Content-type: application/xhtml+xml”); } else {
header(“Content-type: text/xml”);
}
echo("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
?>



		<column width="170"  header="Company Name" option="#company_name#"/>
	</columns>
</template>
<?php userSecurityFormDataA(); mysql_close($res); ?>

[/code]