Page 2 of 2

Posted: Mon Dec 29, 2003 10:21 am
by Derfel Cadarn
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

Code: Select all

for ($i = 0; $i < count($_POST[name]); $i++)
into

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?

Posted: Mon Dec 29, 2003 10:23 am
by lizlazloz
yes, thanks a lot!

Posted: Mon Dec 29, 2003 10:24 am
by Derfel Cadarn
I am the greatest! :D
:roll: