RE: [PHP] assigning javascript variables to php variables...
| From: | Ray Hunter | Date: | Mon, 12 May 2003 03:53:55 +0000 |
| Subject: | RE: [PHP] assigning javascript variables to php variables... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147257@lists.php.net to get a copy of this message | ||
Leif answered the question correctly. The only way that your js is
going to talk to the server is via get and post with forms. Basically,
you can create a javascript var that is then sent to PHP and PHP will
pick it up with the $_POST or $_GET global arrays.
I have done this many times by creating javascript vars and posting them
to a specific php page...
--
Ray
On Sun, 2003-05-11 at 21:30, Bruce Douglas wrote:
> ok..i recognize that....
>
> but i can assign a jscript var to a php var...i simply want to be able to do
> the reverse...
>
> -bruce
>
>
> -----Original Message-----
> From: Leif K-Brooks [mailto:eurleif@buyer-brokerage.com]
> Sent: Sunday, May 11, 2003 7:50 PM
> To: Bruce Douglas
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] assigning javascript variables to php variables...
>
>
> PHP is server-side, javascript is client-side. You'll have to send a
> new request to do anything with javascript variables server-side.
>
> Bruce Douglas wrote:
>
> >hey...
> >
> >quick question.. what's the corecct syntax/method to assign a javascript
> var
> >to a php var... I know how to assign a php var to a jscript var...
> >
> >Thanks for any assistance...
> >
> >Thanks,
> >
> >Bruce
> >bedouglas@earthlink.net
> >
> >
> >
> >
> >
> >
>
> --
> The above message is encrypted with double rot13 encoding. Any unauthorized
> attempt to decrypt it will be prosecuted to the full extent of the law.
>
>