"; $a[1]="Cazacu Cristian"; $b[1]="3"; $c[1]="H9 D C8 JS"; $e[1]="8"; $f[1]="-"; $d[1]=""; $a[2]="Ceban Vadim"; $b[2]="3"; $c[2]="H10 C7 JS10 JS"; $e[2]="10"; $f[2]="-"; $d[2]=""; $a[3]="Gradinaru Daniela"; $b[3]="0"; $c[3]="H10 D9 T10 C10 JS10 JS8 JQ10"; $e[3]="-"; $f[3]="-"; $d[3]=""; $a[4]="Ionasco Ana"; $b[4]="0"; $c[4]="H8 D C8 "; $e[4]="-"; $f[4]="-"; $d[4]=""; $a[5]="Melinte Liviu-Adrian"; $b[5]="0"; $c[5]="H10 D10 T10 C JS10 JS JQ9"; $e[5]="-"; $f[5]="-"; $d[5]=""; $a[6]="Melnic Octavian"; $b[6]="0"; $c[6]="H8 D C8 JS10 JS10"; $e[6]="-"; $f[6]="-"; $d[6]=""; $a[7]="Misac Constantin"; $b[7]="0"; $c[7]="-"; $e[7]="-"; $f[7]="-"; $d[7]=""; $a[8]="Munteanu Igor"; $b[8]="3"; $c[8]="H10 D10 T C10 JS10 JS10! JQ10"; $e[8]="8"; $f[8]="-"; $d[8]=""; $a[9]="Racila Cristina"; $b[9]="0"; $c[9]="H9 D C10 JS10 JS10"; $e[9]="-"; $f[9]="-"; $d[9]=""; $a[10]="Savin Ion"; $b[10]="0"; $c[10]="H8 JS7 "; $e[10]="-"; $f[10]="-"; $d[10]=""; $a[11]="Tcaciuc Maxim"; $b[11]="3"; $c[11]="H10 D10 T10 C JS10 JS8 JQ8"; $e[11]="9"; $f[11]="-"; $d[11]=""; $a[12]="Ulmanu Cristian"; $b[12]="0"; $c[12]="H10 D10 T10 C10 JS8 JS"; $e[12]="-"; $f[12]="-"; $d[12]=""; $a[13]="Zbirnea Mihai"; $b[13]="0"; $c[13]="H6 JS JS"; $e[13]="-"; $f[13]="-"; $d[13]=""; //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 Lucrările de laborator susţinute: ".$b[$hint]."

Prima atestare: ".$e[$hint]."

A doua atestare: ".$f[$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 "
"; ?>