Re: Passing JavaScript variables
| From: | Yasuo Ohgaki | Date: | Fri, 16 Mar 2001 03:09:42 +0000 |
| Subject: | Re: Passing JavaScript variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-44199@lists.php.net to get a copy of this message | ||
"Gary" <kcooke@mediaone.net> wrote in message
news:98rohv$b0k$1@toye.p.sourceforge.net...
> Is there a way to pass a JavaScript variable to a PHP function?
>
> Thanks, Gary
You can use GET/POST/COOKIE to do that.
i.e. You must send new request to server and send variables, that you wan to
pass PHP, as $HTTP_GET_VARS, $HTTP_POST_VARS or $HTTP_COOKIE_VARS. And of
course, you cannot call PHP functions from JavaScript.
Regards,
--
Yasuo Ohgaki