You are here: Re: Sending an array from a form « PHP Programming Language « IT news, forums, messages
Re: Sending an array from a form

Posted by d on 06/18/03 11:37

"Kimmo Laine" <spam@outolempi.net> wrote in message
news:3g5zf.3543$wM4.541@reader1.news.jippii.net...
> "Mike" <someone@microsoft.com> wrote in message
> news:Mv4zf.7033$8r1.4445@trndny01...
>> Hello,
>> How do I send an array from a form to another php page?I want to
>> bundle up some data from form fields in an array and send them together
>> like that. I must be missing something?
>> Thanks
>> Mike
>
>
> <html><body>
> <form action="<?php echo $_SERVER['PHP_SELF']?>" method="get">
> <input type="text" name="myarray[]" value="you">
> <input type="text" name="myarray[]" value="mean">
> <input type="text" name="myarray[17]" value="like">
> <input type="text" name="myarray[dog]" value="this?">
> <input type="submit">
> </form>
> <?php print_r($_GET['myarray']); ?>
> </body></html>

serialize is a lot easier ;)

>
> --
> "En ole paha ihminen, mutta omenat ovat elinkeinoni." -Perttu Sirvi�
> spam@outolempi.net | Gedoon-S @ IRCnet | rot13(xvzzb@bhgbyrzcv.arg)
>

 

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

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