Re: interpolating a variable with a request parameter

2003-10-31 Thread radhika sambamurti
Thanks! That worked. On Fri, 31 Oct 2003 11:43:52 -0700 "Wiggins d Anconia" <[EMAIL PROTECTED]> wrote: > > > > > > > > > Hi, > > > I am trying to do this: > > > > > > for( $i = 0; $i < 5; $i++) { > > > $qty[$i] = $q->param('qty$i'); > > > } > > > I could say $q->qty0; > > >

Re: interpolating a variable with a request parameter

2003-10-31 Thread Wiggins d Anconia
> > On Friday, Oct 31, 2003, at 10:01 US/Pacific, radhika sambamurti wrote: > > > Hi, > > I am trying to do this: > > > > for( $i = 0; $i < 5; $i++) { > > $qty[$i] = $q->param('qty$i'); > > what you are probably finding is that > > $qty[0] eq 'qty$i' > > since you used the sing

Re: interpolating a variable with a request parameter

2003-10-31 Thread drieux
On Friday, Oct 31, 2003, at 10:01 US/Pacific, radhika sambamurti wrote: Hi, I am trying to do this: for( $i = 0; $i < 5; $i++) { $qty[$i] = $q->param('qty$i'); what you are probably finding is that $qty[0] eq 'qty$i' since you used the single quote token. whereas $qty[$i] = $

Re: interpolating a variable with a request parameter

2003-10-31 Thread Wiggins d Anconia
> > > > Hi, > > I am trying to do this: > > > > for( $i = 0; $i < 5; $i++) { > > $qty[$i] = $q->param('qty$i'); > > } > > I could say $q->qty0; > > $q->qty1; > > | > > | > > | > > $q->qty4; > > > > and be done with it. T

Re: interpolating a variable with a request parameter

2003-10-31 Thread Wiggins d Anconia
> Hi, > I am trying to do this: > > for( $i = 0; $i < 5; $i++) { > $qty[$i] = $q->param('qty$i'); > } > I could say $q->qty0; > $q->qty1; > | > | > | > $q->qty4; > > and be done with it. That works. But I would