Re: AW: [PHP3] Passing multiple values for a variable using the URL...
| From: | Andrej Trobentar | Date: | Thu, 25 May 2000 10:52:03 +0000 |
| Subject: | Re: AW: [PHP3] Passing multiple values for a variable using the URL... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-523@lists.php.net to get a copy of this message | ||
"Savelberg, Patrick" wrote:
> If I have to pass multiple variables I use the following:
>
> www.domain.com/script.php3?var1=value1&var2=value2&var3=value3
>
> but what if I have a multiple select box and multiple values are passed?
> How do I access these values then?
> EG:
> www.domain.com/script.php3?var1=value1&var1=value2&var1=value3
>
Use arrays instead, something like this
www.domain.com/script.php3?var[0]=value1&var[1]=value2&var[2]=value3.
> -----Ursprüngliche Nachricht-----
> Von: Carl Southgate [mailto:carl@uksolutions.co.uk]
> Gesendet am: Donnerstag, 25. Mai 2000 12:31
> An: php3@lists.php.net
> Betreff: [PHP3] Passing variables using the URL...
>
> Hi,
>
> I am new to php3, and wanted to pass a variable using the URL.... looks
> something like www.php.net/info.php3?Var?123
>
> I have looked in the FAQ and manual but cant seem to find what im after...
> can anyone help??
>
> Thanks Carl
>