|
Posted by d on 09/25/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]
|