|
|
Q1433 How can I pass a JavaScript array to the next page when a form is submitted?
irt.org | Knowledge Base | JavaScript | form | Q1433 [ previous next ] Q1433 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:
On the second page use something like:
Feedback on 'Q1433 How can I pass a JavaScript array to the next page when a form is submitted?' |
-- div -->
|