Saving Data To A Join Table


I am trying to create a registration system.

A student can choose one or many subjects. I created a join table for the selected subjects which stores the student’s id and then the subject id.

Problem is, i want this all to happen in one form. and when the student selects the options(with check-boxes) i save once to both the student table and then join table.

I don’t know how to quite get along with this.

Thanks for any suggestions.

take a look at this

Mother of God, thank you soo much…Been at this for a very long time…i had just decided access the $_POST[] variables and use sql insert statements to insert the data into the database(i know it is against the conventions but i needed to finish)