Re: [PHP] Array questions...

2008-03-07 Thread Richard Lynch
On Wed, March 5, 2008 9:35 am, Robert Cummings wrote: No textbook, but here's some advice... Think of a variable like a house address for an actual house. 123 Maple Street An array is just an apartment building: 125 Maple Street, Unit 1 125 Maple Street, Unit 2 125 Maple Street, Unit 3 . . .

RE: [PHP] Array questions...

2008-03-06 Thread Ford, Mike
On 05 March 2008 15:50, Jason Pruim advised: > On Mar 5, 2008, at 10:41 AM, Ford, Mike wrote: > >> (I was also wondering to myself whether you actually really, really >> wanted $txtNumArray = $_POST['txtNumArray'], but perhaps you can easily >> explain why not...?) > > It's a habit I picked up

Re: [PHP] Array questions...

2008-03-05 Thread Jim Lucas
I won't address the main issue of your question, since it looks like that has been solved. But I want to point out a few other things that might help you. Follow along below... Jason Pruim wrote: So for some reason, arrays always mess me up... I don't know what it is, but it just hasn't click

Re: [PHP] Array questions...

2008-03-05 Thread Robert Cummings
On Wed, 2008-03-05 at 10:53 -0500, Jason Pruim wrote: > On Mar 5, 2008, at 10:35 AM, Robert Cummings wrote: > > > > I think you want the following after performing a very cursory look at > > your sample. > > > > > > > $NumArray > >= isset( $_POST['txtNumArray'] ) > >? $_POST['txtNumArray'

Re: [PHP] Array questions...

2008-03-05 Thread Jason Pruim
On Mar 5, 2008, at 10:35 AM, Robert Cummings wrote: I think you want the following after performing a very cursory look at your sample. Mind if I ask why setting it that way would be bettter? Other then the fact that it looks like it might possibly handle some of the errors I'm getting

Re: [PHP] Array questions...

2008-03-05 Thread Jason Pruim
On Mar 5, 2008, at 10:41 AM, Ford, Mike wrote: On 05 March 2008 15:34, Jason Pruim advised: Okay so I'm replying to my own post... And top posting to boot! :P Amazing what happens when you pull a few [] off for completness: $NumArray = Array($_POST['txtNumArray']); works as I wanted :)

RE: [PHP] Array questions...

2008-03-05 Thread Ford, Mike
On 05 March 2008 15:34, Jason Pruim advised: > Okay so I'm replying to my own post... And top posting to boot! :P > > Amazing what happens when you pull a few [] off for completness: > > $NumArray = Array($_POST['txtNumArray']); > > works as I wanted :) Are you sure?? Looks a bit suspect t

Re: [PHP] Array questions...

2008-03-05 Thread Robert Cummings
On Wed, 2008-03-05 at 10:28 -0500, Jason Pruim wrote: > So for some reason, arrays always mess me up... I don't know what it > is, but it just hasn't clicked yet... So I'm sure this is a simple > question for someone who knows and understands arrays :) > > So with that being said here's the c

Re: [PHP] Array questions...

2008-03-05 Thread Jason Pruim
Okay so I'm replying to my own post... And top posting to boot! :P Amazing what happens when you pull a few [] off for completness: $NumArray = Array($_POST['txtNumArray']); works as I wanted :) Anyone have any texts that could help me get a better grasp on arrays though? :) On Mar 5,