ON PAGE 1 I HAVE A LIST BOX AND I CHOOSE "ONE TWO" FROM THE LISTBOX.
<?php
/
Create your SQL statement
/
$sql="SELECT sv_type from tbl_objtype ORDER by sv_type;";
$result_set = pg_Exec ($conn, $sql);
$rows = pg_NumRows($result_set);
if ((!$result_set) || ($rows < 1)) {
//No connection or no rows returned, so print an error
echo "<H1>ERROR - no rows returned</H1><P>";
exit; //exit the script
}
for ($j=0; $j < $rows; $j++) {
echo "<option value=".pg_result($result_set, $j, "sv_type")."> ".pg_result($result_set, $j, "sv_type")."</option>";
}
?>
</select>
ON PAGE 2 I AM ONLY GETTING "ONE"
if(isset($POST['cbo_objtype']))
{
$objtype_ch=$POST['cbo_objtype'];
$strWhereSet = "Yes";
$strWHERE="Where sv_type= '".$objtype_ch."'";
}