|
Posted by d on 01/09/06 19:05
"jukka" <ikaros@sci.fi> wrote in message
news:dpttie$h8m$1@phys-news4.kolumbus.fi...
> nescio wrote:
>>>Well, you haven't told us what $arrayHeaders contains, so it's difficult
>>>to see what HTML this will result in. However, I'm pretty sure it won't
>>>work.
>>>
>>>The following will work, however:
>>>
>>><FORM action="process.php" method="GET">
>>><INPUT type="hidden" name="foo[]" value="apple">
>>><INPUT type="hidden" name="foo[]" value="bison">
>>><INPUT type="hidden" name="foo[]" value="car">
>>><INPUT type="submit">
>>></FORM>
>>
>>
>> well, maybe i did not explain it very clear (it happens to me all the
>> time :-) );
>>
>> the array i want to send is not made in the form but before.
>> the values come from an cvs-file;
>>
>> let's say: $a = array('a','b','c','d');
>>
>> i want to send this array together with information from a form;
>> that is why i had put the array as an value in an hidden form field;
>>
>>
>>
> you could have the form echoed into the field with a for() loop and
> separated by commas. and then on the next page you could explode() it back
> into an array again
Why don't you turn it into a string using serialize(), stick it in a field,
then unserialize() it on the other end...?
dave
Navigation:
[Reply to this message]
|