Re: Variable Assignment
| From: | Tom Rogers | Date: | Tue, 10 Sep 2002 00:42:24 +0000 |
| Subject: | Re: Variable Assignment | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115797@lists.php.net to get a copy of this message | ||
Hi,
Tuesday, September 10, 2002, 7:08:27 AM, you wrote:
KF> Hi,
KF> I apologize for asking this question as it must have been asked many times
KF> before but I can't find it in any of the archives..
KF> What I would like to do is setup forms in javascript and then on a submit to
KF> assign these variables to PHP variables. I know how to assign PHP to
KF> javascript with the "<?= $foo ?>" or "<?= echo $foo ?>" but I
KF> don't know how
KF> to do the reverse. Can anyone help?
Use a form with hidden fields named the same as the php variables you
need and use javascript to assign values to
them then submit.
--
regards,
Tom