PHP-Code:
<form action="uebung3.php" method="post">
<select name="vorname" onChange="this.form.submit();">
<?php
$variable = file("uebung.txt");
$suche = array();
foreach ($variable as $zeile)
{
$term = explode("|", $zeile);
array_push ($suche, $term[0],$term[1],$term[2]);
echo "<option selected></option>";
echo "<option>". $term[0] ."</option>";
}
?>