Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MySQL and Perl with multiple values

Status
Not open for further replies.

fergmj

Programmer
Joined
Feb 21, 2001
Messages
276
Location
US
I have a MySQL table that has a column called colors
'colors' is a SET defined as 'blue', 'red', 'yellow, 'green'

On an HTML page, I have a scrolling_list (using CGI.pm) that is populated from the SET of colors.

I want the user to be able to select (for example) two colors 'blue' and 'yellow' and then hit a submit button and I need to store the two values in a record.

How can I do this? All of my other data is just one item and that is very easy to store but I am lost on this one.

Thanks
 
This link may help you...near the midlle they talk of "multiple selects" and writing the choices to an array. Their is some sample cgi code. You just need to add the code to write to the MySql table.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top