Re: pass javascript variable to php?
| From: | dav | Date: | Thu, 08 Nov 2001 07:41:29 +0000 |
| Subject: | Re: pass javascript variable to php? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-73844@lists.php.net to get a copy of this message | ||
As Javascript is saving variables into the client memory (that is the
explorer/netscape/whatever) it's not possible to pass this value to the
server (alias php engine) without a post or a get. What you can do is to
create a cookie in javascript and then read it in php in the next page (you
can't set the cookie and pretend php to read it in the same thread).
Infact php stops working just before Javascript starts...
J
"Aaron" <atd@u.washington.edu> ha scritto nel messaggio
news:20011108030145.67807.qmail@pb1.pair.com...
> I've got checkbox that I get the status of with javascript and I put the
> status into a javascript variable. How do I get that variable over to
php?
> I don't want to hit the submit button to get the variable into php.
>
> Thanks,
>
> Aaron
>
>
>