Thanks for the response, Erik! I think I will try passing the data in a
cookie to a "hidden" frame, refreshing the frame, and then reading the data
back. Many thanks to all for the suggestions!
Cheers,
Jed
I liked it when Erik Price wrote this to me:
>
> On Saturday, June 29, 2002, at 03:13 P
On Saturday, June 29, 2002, at 03:13 PM, Jed Verity wrote:
> I can't find any information on passing JavaScript variables to PHP on
> the
> same page (i.e. not through the POST information of a submitted form).
> Is
> this because it's not possible?
>
> To take the load off the server, I'm tr
On Sat, 29 Jun 2002 16:58:50 -0300, Jed Verity wrote:
>Hello, Chris,
>
>Many thanks for the thorough description. It does make sense, of
>course...I
>was just hoping that there was some kind of funky loophole that
>small brains
>like mine couldn't comprehend.
well if it's one-way only communicati
]
Subject: Re: [PHP] Javascript to PHP?
Importance: Low
Hello, Chris,
Many thanks for the thorough description. It does make sense, of course...I
was just hoping that there was some kind of funky loophole that small brains
like mine couldn't comprehend.
Thanks again!
Jed
I liked it when
Hello, Chris,
Many thanks for the thorough description. It does make sense, of course...I
was just hoping that there was some kind of funky loophole that small brains
like mine couldn't comprehend.
Thanks again!
Jed
I liked it when Chris Shiflett wrote this to me:
> Jed Verity wrote:
>
>> I c
Or setting a cookie in JavaScript. It will be transmitted on the next page
request.
-Original Message-
From: John Holmes [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 29, 2002 3:30 PM
To: 'Jed Verity'; [EMAIL PROTECTED]
Subject: RE: [PHP] Javascript to PHP?
Not possible
> My apologies if this has been asked a thousand times. I've
> just joined the list.
I has, but you get that...
> I can't find any information on passing JavaScript variables
> to PHP on the same page (i.e. not through the POST information of a
> submitted form). Is this because it's no
Jed Verity wrote:
>I can't find any information on passing JavaScript variables to PHP on the
>same page (i.e. not through the POST information of a submitted form). Is
>this because it's not possible?
>
Basically, this is not possible.
A common area of confusion to those new to Web programming
en frame or layer and refreshing that...
>
> ---John Holmes...
>
>> -Original Message-
>> From: Jed Verity [mailto:[EMAIL PROTECTED]]
>> Sent: Saturday, June 29, 2002 3:14 PM
>> To: [EMAIL PROTECTED]
>> Subject: [PHP] Javascript to PHP?
>>
>&
I've done this stuff recently. I need to pass whole arrays betn. php and
Javascript (2-way), here is some code:
// PHP var. to JS
function arrFromStr (str2convert) { // make an array from string
arr = new Array();
var posOfQt1 = str2convert.indexOf('\"');
var posOfQt2 = str2convert.
; To: [EMAIL PROTECTED]
> Subject: [PHP] Javascript to PHP?
>
> Hello, Folks,
>
> My apologies if this has been asked a thousand times. I've just joined
the
> list.
>
> I can't find any information on passing JavaScript variables to PHP on
the
> same page (i.e. not
Hello, Folks,
My apologies if this has been asked a thousand times. I've just joined the
list.
I can't find any information on passing JavaScript variables to PHP on the
same page (i.e. not through the POST information of a submitted form). Is
this because it's not possible?
To take the load of
ROTECTED]]
>Sent: Wednesday, November 14, 2001 10:28 AM
>To: [EMAIL PROTECTED]; PHP General
>Subject: RE: [PHP] javascript to php ???
>
>
>On Wed, 14 Nov 2001 10:16:42 +1100, Martin Towell wrote:
>>"serialise" the array and make the "value" of a hidden
No.
You have to realise that JavaScript is client side, and PHP is server
side, so -- apart from inserting those javascript values into a form and
submitting it using code -- PHP and JavaScript cannot interact.
Mike
fitiux wrote:
>Hi =)
>
>is it possible to pass a javascript array to php ??
s helps.
Dean
-Original Message-
From: fitiux [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 4:54 PM
To: PHP General
Subject: [PHP] javascript to php
Hi =)
is it possible to pass a javascript array to php ???
thanks.
--
PHP General Mailing List (http://www.ph
Thanks to all for help me..
=)
I hope to help someone soon.
--Patricio.
Sent: Wednesday, November 14, 2001 10:28 AM
To: [EMAIL PROTECTED]; PHP General
Subject: RE: [PHP] javascript to php ???
On Wed, 14 Nov 2001 10:16:42 +1100, Martin Towell wrote:
>"serialise" the array and make the "value" of a hidden field this
>value.
>Then in PHP "u
Why, sure!
In your FORM tag, use ACTION="test.php".
You can send your JavaScript variable as part of the form, in a hidden form
field such as INPUT TYPE="hidden" VALUE=myValue. The value of the variable
will be available the next time test.php shows up as $myValue. You can
then manipulate i
ript arrays here. :)
>-Original Message-
>From: fitiux [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, November 14, 2001 10:18 AM
>To: PHP General
>Cc: [EMAIL PROTECTED]
>Subject: Re: [PHP] javascript to php ???
>
>
>>>Hi =)
>>>is it possible to
On Tue, 13 Nov 2001 20:17:32 -0300, fitiux wrote:
> >>Hi =)
>>>is it possible to pass a javascript array to php ???
>
>>by the time javascript comes into play, php has already done it's
>>job
>>and left the building. If you mean can javascript pass variables
>>to a
>>new request for php to h
"serialise" the array and make the "value" of a hidden field this value.
Then in PHP "unserialise" it.
-Original Message-
From: fitiux [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 10:18 AM
To: PHP General
Cc: [EMAIL PROTECTED]
Subjec
>>Hi =)
>>is it possible to pass a javascript array to php ???
>by the time javascript comes into play, php has already done it's job
>and left the building. If you mean can javascript pass variables to a
>new request for php to handle, then sure.
Thanks for your reply. =)
I have a little
On Tue, 13 Nov 2001 19:53:48 -0300, fitiux wrote:
>Hi =)
>
>is it possible to pass a javascript array to php ???
by the time javascript comes into play, php has already done it's job
and left the building. If you mean can javascript pass variables to a
new request for php to handle, then sure.
Hi =)
is it possible to pass a javascript array to php ???
thanks.
what exactly are you trying to do? pass variables to a php script? then
use a form with POST or GET...not that simple? describe better what
you're doing then...
-jack
cam k wrote:
>
> does anyone know how to pass values in javascript variables to php
> variables?? Or a workaround if no direct s
does anyone know how to pass values in javascript variables to php
variables?? Or a workaround if no direct solution...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrat
26 matches
Mail list logo