Inserting Multiple Data in the database

A

Anonymous

Guest
Hi, i am having difficulty in inserting multiple data into the database at one time. I am creating a skills page, you submit a skill, it takes you to the skills inside that skill and does it again. On Page 3, the final skills i have a page which gives the

skill | ability | system

the ability and system are drop down lists to select which you are

Most of the skills have more than one skills inside them so on the 3rd page their could be 10 'skill' (s) and i want to select the ability for each task and the system.

I have made it so it does insert into the database, but it only inserts the last skill. How can i make it so if i have more than one skill on the 3rd page it enters ALL the data into the database, so if i have 3 skills on the 3rd page, it will create 3 different inserts into the db!

Much Appreciated :D

Adam
 
In principle with each page send to user cookie:

Code:
setcookie ("skill", $value);
 
Hello,
Make the name of your select box as: name="mySelect[]" with empty square brackets after the name you choose. This will cause all selections to be sent as an array. Note: Javascript hates this though and forces you to reference those elements in ways other than using the name attribute.
 
Back
Top