Hi Dan,
Dan Watt wrote:
First off, the first line "print "" needs to go, since it will cause errors.
Of course, it was just a copy-error..
The only thing I can think of is that your $zusatzerte array is not populated correctly.
Thanks for the great hint! That was it! $zusatzwerte is an exploded string and it didn't correspond to the implode...
Now I have another question:
One of my options is an undefined status, it should always been selected, if the array is emty, "undefined". I've tried
if ((in_array("Unbestimmt",$zusatzwerte))||(!in_array($zusatzwerte))){
print "<option value=\"Unbestimmt\" selected>Unbestimmt</option>";
}else{
print "<option value=\"Unbestimmt\">Unbestimmt</option>";
It works quiet well, but if another option than "Unbestimmt" is selected, "Unbestimmt" still keeps selected.
Can yuo help a second time?
Thanks
Maik