Re: Array Javascript
| From: | Marek Kilimajer | Date: | Thu, 05 Sep 2002 11:45:05 +0000 |
| Subject: | Re: Array Javascript | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115294@lists.php.net to get a copy of this message | ||
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.