include ("datacon.php"); foreach($HTTP_POST_VARS as $key =>$value) { $$key = htmlentities(stripslashes($value)); } $sql = "SELECT * FROM list ORDER BY name ASC"; $result = @mysql_query($sql,$dblink) or die("Couldn't execute query."); while ($row = mysql_fetch_array($result)) { $listid = $row['listid']; $name = $row['name']; @$option_block .=""; } $display_block = "
"; ?>Select a tartan name from the dropdown list:
echo "$display_block"; ?>