Re: Re: Javascript array
| From: | Markus Fischer | Date: | Sun, 20 Jan 2002 01:48:18 +0000 |
| Subject: | Re: Re: Javascript array | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-77552@lists.php.net to get a copy of this message | ||
> betimd@ipko.net (Beta) wrote in
> news:20020119104939.30110.qmail@pb1.pair.com:
>
> > Hi, I have a problem sending variable value from JAVASCRIPT to PHP
> > exactly i want when i press Submit button the javascript array to be
> > posted in PHP, i don;t want to use any HTML form, so sending values
> > from forms, i want the values to be posted directly in PHP so i can
> > use those values;
Well, you _have_ to do some kind of POST or GET request in
order to call a server-side PHP script with your variables.
A common trick is to use a hidden (or one-pixel) frame so the
user just does not see the output of the PHP script. This way
your custom JS post/get requests aren't easily visible to the
user.
--
Please always Cc to me when replying to me on the lists.