PHP Code:
$main.="HAT: <select name=\"hat\">";
if (!empty($_GET["hat"])){
$main.="<option value=\"$hat\">$hat</option>";
}else {
$main.="<option value=\"\">select</option>";
$main.="".capture("hat)."";
}
$main.="</select><br/>";
capture is the the function that searches directory.
Comment