How can I pass a JavaScript array to the next page when a form is submitted?
When submitting a form, only the named form fields get passed onwards with their contents. The JavaScript code, and the objects you create are lost.
If you need to pass the data held within an array as part of the form, you need to place the data in a form field - a hidden form field is best.
Once the target page has loaded you need to parse the search data to extract the data to build another array.
On the first page, use something like:
Friday, December 29, 2006
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment