Location: PHPKode > scripts > DDcomboBox > ddcombobox/combo_sample.php
<?php 

	$constr = "user=davis dbname=sampledb";

	require("class.DDcomboBox.php");

/* The "<select name=select>" statement is intentionally not included in 
   the class so that scripts can be added to an event in 
   the select statement. (e.i. <select name=select
   onClick="JavaScript:reloadpage();">
*/
	echo "<select name=select>";
	$test = new DDcomboBox("sample_table", "field_label", "field_value", 32, $constr);
	echo "</select>";
?>
Return current item: DDcomboBox