I have forum options in a loop (ie value = Entry$i)
I need to call GET_POST('Entry$i') and loop though the INSERT query $i times. If I put GET_POST in a loop, however, it does not work. It does not give an INSERT failed error so I assume it is not reading it. I have also tried putting if GET_POST('Entry1') outside the loop, but it does not like it. I dont know how many options are needed so I need it to generate the correct number. Then you can select $i options from duplicated option lists. (Ie) participant 1, 2 and 3 from a list of possibles.
I have also use GET_POST, I use a function. Other sumbits (I not use what they are called, please set me know), work fine on this page.
echo "Entry $Number: <select name = \"Entry$j\">";
for ($i = 1; $i<$EntNum+1; $i++)
{ etc etc
then
for ($i = 0; $i<$NumberOfEntrys; $i++) {
if (isset($_POST['AddEntry']) && isset($_POST["Entry$i"]))
//rest of this bit not executed -just insert
Ideas? Thanks