Re: Newbie Question: Variables on the fly
| From: | Curt Zirzow | Date: | Fri, 28 May 2004 14:02:57 +0000 |
| Subject: | Re: Newbie Question: Variables on the fly | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187118@lists.php.net to get a copy of this message | ||
* Thus wrote Steve Edberg (sbedberg@ucdavis.edu):
> At 2:01 AM -0300 5/28/04, csnm@ns.sympatico.ca wrote:
>
> However, most of what you can do with them can be done more simply
> with arrays. In your example above, use
>
> myPage.php?dataPoint[]=10&dataPoint[]=20&dataPoint[]=30
>
I'd also suggest to add the index in the dataPoints, so you're not
relying on the browser or php to determain what order the array
will be built.
myPage.php?dataPoint[1]=10&dataPoint[3]=20&dataPoint[1]=30
Go Aggies!
Curt
--
"I used to think I was indecisive, but now I'm not so sure."