Hi,
I have a one LIST BOX , in which a user has option to select multiple values. I want that if user select 3 values from LIST BOX, then my program saves all these values in a DB
plz help me in in the code
bye
feyd | double posting threads = no-no. Original Thread: viewtopic.php?t=37837
Getting multiple values from List Box and save in DB
Moderator: General Moderators
I assume this is what you mean by LIST
Then to process the data
Code: Select all
<input type="checkbox" name="name[]" value="1">
<input type="checkbox" name="name[]" value="2">
<input type="checkbox" name="name[]" value="3">Code: Select all
foreach($name AS $value)
{
// insert into db
}Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.