Mailinglisten-Archive |
> Werte von Checkboxen in Formularen werden in php mittels Arrays ausgegeben.
> z.B. so:
>
> printf("<form method=\"get\" action=\"$PHP_SELF\">");
> printf("<input type=\"checkbox\" name=\"varray[]\"
> value=\"Eins\">Eins<br>\n");
geht das auch mit Multi-Select-Feldern ? Ich habs auf die gleiche Art
probiert, also:
PRINT "<FORM ACTION=\"addtip2.php3\" METHOD=\"GET\">";
PRINT "<select NAME=\"typ[]\" multiple>";
aber das haut net hin. wenn ich mehrere Sachen selectiert sind
steht beim abschicken in der URL:
.....addtip2.php3?typ%5B%5D=warm&typ%5B%5D=rot
------------------^^^------------^^^---------------
jemand ne Idee ?
Ciao Stefan P.
php::bar PHP Wiki - Listenarchive