/base.css" rel="stylesheet" type="text/css">
sendInfo('".$_POST["name"]."','".$_POST["theselect"]."')"; break; case "delete": $thequery="delete from choices where listname=\"".$_POST["list"]."\" and thevalue=\"".$_POST["theselect"]."\";"; $thequery=mysql_query($thequery,$dblink); break; case "set as default": $thequery="update choices set selected=0 where listname=\"".$_POST["list"]."\" ;"; $thequery=mysql_query($thequery,$dblink); $thequery="update choices set selected=1 where listname=\"".$_POST["list"]."\" and thevalue=\"".$_POST["theselect"]."\";"; $thequery=mysql_query($thequery,$dblink); break; case "add": $thequery="insert into choices (listname,thevalue) values (\"".$_POST["list"]."\",\"".$_POST["addnew"]."\");"; $thequery=mysql_query($thequery,$dblink); break; }//end switch } else $_POST["command"]="show"; if($_POST["command"]!="select") { $querystatement="SELECT thevalue,selected FROM choices WHERE listname=\"".$list."\" ORDER BY selected DESC,thevalue;"; $queryresult=mysql_query($querystatement,$dblink); if(!$querystatement) reportError(100,"SQL Statement Could not be executed.") ?>