.location.href = url;
return false;
}
//-->
Click Here
kale wrote:
>This is a javascript?
>Where must I put this lines?
>Thanks for help.
>Kale.
>
>-Original Message-
>From: Marek Kilimajer [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, September
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?';
>
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
CTED]]
> Sent: Thursday, September 05, 2002 1:12 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Array Javascript
>
>
> Hy,
> I have an array make with a javascript.
> How can I read values with PHP from it?
> Kale.
>
>
> --
> PHP General Mailing List (http:
You can't. Javascript happens on the client side AFFTER PHP has happend on
the server side. For PHP to ready variables made with javascrip,t you'd
have to submit those variables/arrays via POST of GET to the PHP file.
Justin
on 05/09/02 9:11 PM, kale ([EMAIL PROTECTED]) wrote:
> Hy,
> I have
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
ginal Message-
From: Marcus Ouimet [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 6:58 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Array & Javascript?
I am trying to add a Javascript in array but it gives me an error
unless
certain characters are commented which makes sense,
I am trying to add a Javascript in array but it gives me an error unless
certain characters are commented which makes sense, but then the Javascript
won't run. Any ideas here is what I am trying:
'left',
'text' => '
');
of course the ' characters are a
8 matches
Mail list logo