/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 }//end if if(isset($_GET["list"])) $_POST["list"]=$_GET["list"]; $thequery="Select thevalue,selected from choices where listname=\"".$_POST["list"]."\" order by selected DESC,thevalue;"; $thequery=mysql_query($thequery,$dblink); ?>
choose from list...