How can I pass Javascript variables to PHP?
| From: | David Phillips | Date: | Mon, 09 Apr 2001 14:31:54 +0000 |
| Subject: | How can I pass Javascript variables to PHP? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-47790@lists.php.net to get a copy of this message | ||
I create an array (of over 100 elements) in Javascript, collected from
client-side interaction. Now I want to pass that information to PHP to
update a MySQL database. I'm guessing I would encode the information into a
data structure to pass to a page via POST. But I don't know how to do that
(or something better?). Can someone please point me in the right direction?
Thanks.
--David