You are here: Re: sending an array in an hidden field « All PHP « IT news, forums, messages
Re: sending an array in an hidden field

Posted by jukka on 01/09/06 16:56

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация