Jump to content


This topic is now archived and is closed to further replies.


One to many (/)

Recommended Posts



Another problem I can't get my head around.


I am trying to insert an record into a table but one of the fields is a lookup to another table ...... (this bit works okay) ...... but I need to be able to make multiplue selections.


Althougn it looks like you can selct more than one, it only adds 1 record.


See example at http://www.cornwallwildlifetrust.org.uk/ev...dtwotables1.php


Username: diaryeditor

Password: havefun


I've cheated at the moment and passworded the whole directory - next job will be to set up a proper loggin system!


Share this post

Link to post
Share on other sites

I have the same problem... here is the solution:


You must only put this brackets to the name of the (?) input tag:

<select name="sample[]">


WIth the []-brackets the name is not a variable, its a array... the array you canread with foreach or for.

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.