in reply to Posting arrays

If you want this to be a persistent list that all users can add to, then you need some type of database. You could even rely on something simple like a csv file and use Text::CSV.

You won't be able to save state between users if you don't have some sort of database though. At most you'll be able to save each form submission from a particular user in an additional hidden variable, but all that data will only be visible to that single user and only until they close that browser.

Note, if a single user solution is acceptable, you can also look into CGI::Session. And of course, I assume you're familiar with and using CGI.

Finally, the following recent post was from a user asking about hidden fields CGI: retaining textarea contents in hidden field

Replies are listed 'Best First'.
Re^2: Posting arrays
by packetstormer (Monk) on Mar 10, 2011 at 17:58 UTC
    Thanks for the reply. Its actually only for the user session, so it will empty when the user moves away from the page.