[nycphp-talk] accessing $_SESSION elements
Aaron Fischer
agfische at email.smith.edu
Fri Oct 24 19:57:09 EDT 2003
> Aaron, I still think that arrays would do it. See my comments inline,
> and also play with code snidbit at the bottom of my post.
Urgh, brain fuzzy, must get food... but I think I am seeing what you
are getting at.
> <form action='' method="POST">
>
> Fair 1: name: <input type="text" name="fairs[1]['name']"><br />
> Fair 1: location: <input type="text" name="fairs[1]['loc']"><br />
> Fair 2: name: <input type="text" name="fairs[2]['name']"><br />
> Fair 2: loc: <input type="text" name="fairs[2]['loc']"><br />
>
> <br />
> <input type=submit value="Go">
> </form>
>
So in this example are you setting an array inside of an array? From
what I am seeing there is a fairs array that would hold a "1" array and
a "2" array. These "1" and "2" arrays would hold the key => values of
name, loc, date, etc.
-A
More information about the talk
mailing list