"; $d[]=""; $d[]=""; $d[]=""; $d[]=""; $d[]=""; $d[]=""; $d[]=""; $d[]=""; $d[]=""; $d[]=""; $d[]=""; $d[]=""; $d[]=""; $d[]=""; $d[]=""; $d[]=""; $d[]=""; $d[]=""; $d[]=""; //get the q parameter from URL $q=$_GET["txt"]; // echo "exemplu de CGI"; echo "
"; // echo "S-a introdus \n"; // echo $q; echo "
"; //lookup from array if (strlen($q) > 0) { $raspuns=""; $k=0; $response=""; for($i=0; $i Numarul de lucrări de laborator susţinute: ".$b[$hint]."
Prima atestare: ".$e[$hint]."
".$d[$hint]; } else { $raspuns=""; } } // Set output to "no suggestion" if no hint were found // or to the correct values if (strlen($raspuns) == 0) { $response="nu este clar"; } else { $response=$raspuns; } //output the response echo "

"; echo $response; echo "

"; echo "
"; ?>