Upload a multiple slection menu/list

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
alexislalas
Forum Commoner
Posts: 44
Joined: Sun Feb 19, 2006 10:09 pm

Upload a multiple slection menu/list

Post by alexislalas »

i have a list that will be created dynamically so the user can select 1 or more options from the list.

how do i upload it into mysql? i only get into the database the last selected option.

oh, and im doing it with dreamweaver.


thanks
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

you need to make the select an array.

ie:

Code: Select all

<select name="thisselect[]">
alexislalas
Forum Commoner
Posts: 44
Joined: Sun Feb 19, 2006 10:09 pm

Post by alexislalas »

could you elaborate a little bit more please.

when i use the <select name="thisselect[]"> all i get into the database is "Array". but i know im missing something :oops:

sorry, im new with this things...
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Post Reply