Posted: Mon Dec 29, 2003 10:21 am
What I've changed is the following:
1. the number of fields (entered in the first stage) are repeated in the second stage as "hidden" form-field. We'll need this variable.
2. in the third stage I changed into .
3. I guessed right thinking that the FOR-loop you used to build the SQL-code would cause trouble. Therefore I built in an extra step, using dummy-variables $name, $type and $size. This change made it work, I guess. Although I cannot explain it really....
Well, lizlazloz, you gave me a hard nut to crack here! Was fun though..
Does it work now?
1. the number of fields (entered in the first stage) are repeated in the second stage as "hidden" form-field. We'll need this variable.
2. in the third stage I changed
Code: Select all
for ($i = 0; $i < count($_POST[name]); $i++)Code: Select all
for ($i = 0; $i < $_POST['fields']; $i++)3. I guessed right thinking that the FOR-loop you used to build the SQL-code would cause trouble. Therefore I built in an extra step, using dummy-variables $name, $type and $size. This change made it work, I guess. Although I cannot explain it really....
Well, lizlazloz, you gave me a hard nut to crack here! Was fun though..
Does it work now?