The user will be able to add as many entries as they see fit. So this could result in a bunch of variables. So my question is this. When the form is submitted what would be the best way to gather all of the variables so that I can insert them into the database? I'm a little stuck as to what to do. Should I name them pos1, pos2... name1...name2...? Or is there a better way to do this?
I don't want to have a hundred lines like this in my code;
$pos1 = $_POST['pos1'];
I hope that I have explained this well enough. If you need more info I will be more than glad to give it to you.
Anyone have any ideas on how to do this? I have passed variables from a form before, but that was when I knew exactly what variables were being passed and exactly how many there would be, so I'm not a complete newb...
Thanks in advance to anyone willing to take the time to help.