471,627 Members | 1,152 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,627 software developers and data experts.

Multiple Selection POST forms

jimleon
74
I have a post form for adding news articals to our website. It sends the headline and content and which category it belongs to to our MySQL database. This all works fine if a single category is selected. However, if i select more than one category it will only post the last one selected, hence if i select category 2, 4 and 5, it will only post one submission related to category 5. How do I set it to have either 3 submissions (ie cat 2,4 & 5) to the db or change something at the database end to handle receiving multiple selections.

<td>
<select name=\"cat_id\" size=\"4\" multiple>
<option value=\"2\">Category1</option>
<option value=\"3\">Category2</option>
<option value=\"4\">Category3</option>
</select>
</td>

Thank in advance
Aug 15 '07 #1
0 1146

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

13 posts views Thread by jing_li | last post: by
1 post views Thread by NiLaY | last post: by
2 posts views Thread by Dolorous Edd | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.