NYCPHP Meetup

NYPHP.org

[nycphp-talk] Passing Arrays

Linux Rocks linux_rocks1 at yahoo.com
Thu Apr 13 15:26:27 EDT 2006


Thanks Mr. Nunez as well.


--- "Nunez, Eddy" <enunez at tiaa-cref.org> wrote:

> 
> If you're trying to get php to create an array from
> your a form field...
> a very common mistake is forgetting the brackets in
> the form field name.
> 
> If you leave out the brackets, all you'll get is the
> last selected item/option, not all of them.
> 
> e.g.
> <select multiple size=5 name=my_ops[]>
> .....
> </select>
> 
> -----Original Message-----
> From: talk-bounces at lists.nyphp.org
> [mailto:talk-bounces at lists.nyphp.org]On Behalf Of
> Ken Robinson
> Sent: Thursday, April 13, 2006 3:16 PM
> To: NYPHP Talk
> Subject: Re: [nycphp-talk] Passing Arrays
> 
> 
> At 03:07 PM 4/13/2006, Linux Rocks wrote:
> >Hello again:
> >
> >I'm passing an array to a page and can't figure out
> >how to access each row with $_POST['array_name'].
> >
> >How can I browse each row for ie:
> >
> >print array_name[1]
> >print array_name[2]
> 
> What do you mean by "passing am array to a page".
> 
> Is there a form involved? If so please post the
> script that generates the form.
> 
> Ken 
> 
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
> New York PHP Conference and Expo 2006
> http://www.nyphpcon.com
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
> 
> 
>
**************************************************************
> This message, including any attachments, contains
> confidential information intended for a specific
> individual and purpose, and is protected by law.  If
> you are not the intended recipient, please contact
> sender immediately by reply e-mail and destroy all
> copies.  You are hereby notified that any
> disclosure, copying, or distribution of this
> message, or the taking of any action based on it, is
> strictly prohibited.
> TIAA-CREF
>
**************************************************************
> 
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
> New York PHP Conference and Expo 2006
> http://www.nyphpcon.com
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the talk mailing list