Re: GET question
| From: | David Freeman | Date: | Sun, 28 Apr 2002 21:58:14 +0000 |
| Subject: | Re: GET question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95031@lists.php.net to get a copy of this message | ||
On 28 Apr 2002 at 23:30, Evan wrote:
> I pass parameters via querystring in this way:
> page.php?ID=5&ID=6&ID=23
>
> In $_GET["ID"] I get only the value 23 !!!!
Unless you set ID as an array, which you haven't, you'll only keep
the last value. The simple answer is to have something like:
page.php?ID1=5&ID2=6&ID=23
although there's quite a few other solutions depending on what it is
you're trying to do.
> Is there a way to make things working to have a sequence of values separated
> by commas?
Probably, but it's probably more effective to let us know what you're
trying to do. There's probably better ways to achieve the end result
you're after.
CYA, Dave