Re: javascript to php ???????
| From: | Richard S. Crawford | Date: | Tue, 13 Nov 2001 23:28:08 +0000 |
| Subject: | Re: javascript to php ??????? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-74507@lists.php.net to get a copy of this message | ||
Why, sure!
In your FORM tag, use ACTION="test.php".
You can send your JavaScript variable as part of the form, in a hidden form field such as INPUT TYPE="hidden" VALUE=myValue. The value of the variable will be available the next time test.php shows up as $myValue. You can then manipulate it to your heart's delight.
At 03:17 PM 11/13/2001, fitiux wrote:
Sliante, Richard S. Crawford http://www.mossroot.com mailto:rscrawford@mossroot.com AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford "It is only with the heart that we see rightly; what is essential is invisible to the eye." --Antoine de Saint Exupéry "Push the button, Max!"by the time javascript comes into play, php has already done it's job and left the building. If you mean can javascript pass variables to a new request for php to handle, then sure. Thanks for your reply. =) I have a little problem.. well.. with php I build an html page with javascript to validate a form, the action of this form is call again to the php page. I mean...Hi =) is it possible to pass a javascript array to php ???test.php ----- (make an html page)---> question.html ---(submit form)----> test.phpI populated an array but now I need to pass this array to the same starting php page again. can I do this? --Patricio (I apology because my english is not good enough.. I hope that you can understand me.. )