Hello, I am generating a HTML form from a database and it looks (CSS striped) like:
----8<------------------------------------------------------------------
<form method="POST" href="/">
<input class="setupProjectAddSubmit" type="submit" value="Remove">
<input class="setupProjectAddSubmit" type="submit" value="Modify">
<input class="setupProjectAddInput" name="name" value="24V DC Modular ATX
PSU">
<input class="setupProjectAddInput" name="serno" value="1"
readonly="readonly">
<input class="setupProjectAddInput" name="desc_short" value="ATX PSU
designed for 24V Photovoltaik-Systems and similars">
<textarea class="setupProjectAddInput" name="desc_long" cols="80" rows="10"
wrap="soft">Fuzzy</textarea>
<select class="setupProjectAddSelect" name="sub_projects"
multiple="multiple" size="10">
<option value="6" selected>ATX 120</option>
<option value="4">ATX 60</option>
<option value="5">ATX 90</option>
<option value="11">Device 2</option>
<option value="12">Device 4</option>
<option value="13">Lowvoltage</option>
<option value="7">P4 Module</option>
<option value="8">SATA 2</option>
<option value="9" selected>SATA 4</option>
<option value="10" selected>SATA 8</option>
</select>
<input class="setupProjectAddInput" name="photos"
value="24V_DC_Modular_ATX_PSU.01.jpg">
</form>
----8<------------------------------------------------------------------
and as you can see, there are three items taged... So, this part is
working fine, but if I select an additional item and hit SUBMIT I get
only:
Array
(
[name] => 24V DC Modular ATX PSU
[serno] => 1
[desc_short] => ATX PSU designed for 24V Photovoltaik-Systems and similars
[desc_long] => Fuzzy
[sub_projects] => 10
[photos] => 24V_DC_Modular_ATX_PSU.01.jpg
)
Hell, why is $_POST['sub_projects'] eating the other three items and
take only the last one?
Hmm, this form was already working but I have changed something and do
not more know what...
Any suggestions?
Thanks, Greetings and nice Day/Evening
Michelle Konzack
Systemadministrator
24V Electronic Engineer
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
+49/177/9351947 50, rue de Soultz MSN LinuxMichi
+33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
signature.pgp
Description: Digital signature

