Posted by Kimmo Laine on 09/25/68 11:37
"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>
--
"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]
|