Re: Re: Passing JavaScript variables to PHP
| From: | Ryan Fischer | Date: | Thu, 02 Aug 2001 06:19:13 +0000 |
| Subject: | Re: Re: Passing JavaScript variables to PHP | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-60842@lists.php.net to get a copy of this message | ||
You wrote:
> > location.href='mail.php?message=' + message;
>
> You need to URLEncode that message data.
>
> Not sure how JavaScript does it...
>
> probably message.urlencode()
Actually, it's escape(message).
--
-Ryan :: ICQ - 595003 :: GigaBoard - http://www.gigaboard.net/