Hello all. My first post, so please be gently to me 🙂
Ok, here we go:
I have 2 pages: input.php and proccess.php
On input.php I have 2 forms, from which:
form1: is a javascript form, with one text input box. User can type a number from 1 to 15 in there. When submitted, form triggers javascript (JS) which creates 3 table elements (3 text input boxes names: input, value_1 and value_2). There three input boxes are then inserted into form 2 on input.php using 3 layers. There layers correspodent to the variables from JS.
Furhter, user fills in those 3 values and form 2 sends those to proccess.php. There I can read them by reading variable's input, value_1 and value_2.
My problem is:
if user types number 3 in form 1 (JS form) on input.php, then will JS create 3 x 3 variables:
input 1:
value _1 1:
value_2 1:
input 2:
value_1 2:
value_2 2:
input 3:
value_1 3:
value_2 3:
JS in form 1 on input.php is doing this by running:
for (i=1, i <= number_given_in_form_1, i++)
{
create input boxes
}
So, the problem is:
how can i determine in proccess.php how many input, value_1 and value_2 variable's do I have to read?
I can not read the value user gave in form 1 as this is not passed. Only info from form 2 goes to proccess.php.
My idea is to put value from form 1 (number from text field), passed through JS into hidden text field in form 2. But question remains, how do i do that?
Geez, I hope you ppl will understand what I ment :-)
If not, please ask I will gladly give more explanation!
Thanx in advance.
Cheers,
SmilieBG