RE: [PHP] Javascript to PHP?

2002-06-29 Thread John Holmes
Not possible. You must refresh the page to send something back to PHP. Only workaround is using a hidden 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 PROTECT

Re: [PHP] Javascript to PHP?

2002-06-29 Thread Pushkar Pradhan
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.

Re: [PHP] Javascript to PHP?

2002-06-29 Thread Jed Verity
That's what I was afraid of. It makes sense, of course...I was just hoping there was some kind of hack. Thanks for responding! Jed I liked it when John Holmes wrote this to me: > Not possible. You must refresh the page to send something back to PHP. > Only workaround is using a hidden frame or l

Re: [PHP] Javascript to PHP?

2002-06-29 Thread Chris Shiflett
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

RE: [PHP] Javascript to PHP?

2002-06-29 Thread David Freeman
> 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

RE: [PHP] Javascript to PHP?

2002-06-29 Thread Mark Charette
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

Re: [PHP] Javascript to PHP?

2002-06-29 Thread Jed Verity
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

RE: [PHP] JavaScript to PHP?

2002-06-29 Thread Bruce Karstedt
] 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

Re: [PHP] Javascript to PHP?

2002-06-29 Thread Mark
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

Re: [PHP] Javascript to PHP?

2002-07-01 Thread Erik Price
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

Re: [PHP] Javascript to PHP?

2002-07-01 Thread Jed Verity
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

Re: [PHP] javascript to php ????

2001-11-13 Thread Mark
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.

Re: [PHP] javascript to php ???????

2001-11-13 Thread fitiux
>>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

RE: [PHP] javascript to php ???????

2001-11-13 Thread Martin Towell
"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

Re: [PHP] javascript to php ???????

2001-11-13 Thread Mark
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

RE: [PHP] javascript to php ???????

2001-11-13 Thread Mark
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

Re: [PHP] javascript to php ???????

2001-11-13 Thread Richard S. Crawford
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

RE: [PHP] javascript to php ???????

2001-11-13 Thread Martin Towell
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

RE: [PHP] javascript to php ????

2001-11-14 Thread Grimes, Dean
One way I do this is with the following: var x = new Array(); x[0] = "zero"; x[1] = "one"; x[2] = "two"; // set the hidden input to a comma delimited string document.f.x_array.value = x.toString(); // alert(document.f.x_array.value); Hope this helps. Dean -Original M

Re: [PHP] javascript to php ????

2001-11-14 Thread Mike Eheler
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 ??

RE: [PHP] javascript to php ???????

2001-11-14 Thread Mark
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

Re: [PHP] javascript to php

2001-03-29 Thread Jack Dempsey
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

Re: [PHP] javascript to php ???? THANKS =)

2001-11-13 Thread fitiux
Thanks to all for help me.. =) I hope to help someone soon. --Patricio.