Hi
What I'm trying to do (in English!)
If a user types in 2 into the field movefrom_lounges, the next form does a for loop which shows a list of text fields. The list will be displayed 2 times (as this was the number that was passed). I have got this bit worked out below:
for ($i=1; $i <= $movefrom_lounges; $i++)
{
$seater2= "2seater_lounge$i";
echo "<TR><TD WIDTH=50>INPUT TYPE='text' NAME='$seater2' SIZE=4 MAXLENGTH=2></TD></TR>";
}
If the movefrom_lounges was 2 on the first form, then the above row is shown twice. The first input text field's NAME is 2seater_lounge1, the second is 2seater_lounge2
The problem I have is trying to pass the value of 2seater_lounge1 or 2seater_lounge2 to the next form.
I have tried many combinations, but this is what I have on the third form:
for ($i=1; $i <= $movefrom_lounges; $i++)
{
echo "<INPUT TYPE=\"hidden\" NAME=\"2seater_lounge$i\" VALUE=\"$2seater_lounge$i\">";
}
Any ideas how I can pass the data?
Any help in the right direction would be most grateful.
Lulubell