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  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 trying to do a bunch of string
>> manipulations and loops in JavaScript and then hand that info off to PHP
>> once it's done.
> 
> How will you communicate with PHP without submitting an HTTP request of
> some sort?  So, really, you will need to submit -something-, though it
> could be GET data, POST data, or COOKIE data.
> 
> You can't have JavaScript talk to PHP "within the same page" since the
> webserver/PHP "forgets" all information related to that page as soon as
> it shoots it to the user-agent.
> 
> I'm assuming you know how to use JavaScript to set a cookie, and/or make
> a new request with GET or POST data attached.  If not, let me know.
> 
> 
> Erik
> 
> 
> 
> 
> ----
> 
> Erik Price
> Web Developer Temp
> Media Lab, H.H. Brown
> [EMAIL PROTECTED]
> 
> 


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

Reply via email to