Hi,
Does anyone have a good idea on how to move an array through several forms?
I have an array that is output from form1. No problem to extrac the values out of it.
However - for several reasons I need to take the array $Readers and "move" it through at least 1 more form before ending up on the page where the values will be taken care of.
First I thought I might be able to do it via the <input type="hidden"> filed that I normally use for variables. What I used was:
<input type="hidden" name="Readers[]" value="<? echo $Readers; ?>">
where $Readers is an array that was created via a multiple-selection list on the preceeding page.
Unfortunately all that is placed into the new array is the value "array". Nothing more.
I can simply go through the array and put the values into a new multiple-selection-list on the second page and again retrive the values but the problem that is
1/ I get a list in the form that contains stuff that was collected in the page before and that the nuser shouldn't see.
2/ The user can go and deselect stuff again.
Does anyone has a good idea on how to move an array from one page to the next page?
I tried to use the URL and do a test.php?Results=$Results but it complains that the result is no array 🙁.
/Björn