I forgot &, the right version:
var tmp,url,separator;
url = 'http://site/script.php?';
while(tmp = myArray.shift()) {
   url += separator + 'phparray[]' + escape(tmp);
    separator = '&';
}

document.location.href = url;

Marek Kilimajer wrote:

> var tmp,url;
> url = 'http://site/script.php?';
> while(tmp = myArray.shift()) {
>    url += 'phparray[]' + escape(tmp);
> }
>
> document.location.href = url;
>
> In script.php, you'll find array named phparray
>
> kale wrote:
>
>> Hy,
>> I have an array make with a javascript. How can I read values with 
>> PHP from it?
>> Kale.
>>
>>
>>  
>>
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to