i wasnt sure where to put this post, this was the best place i could find so sorry if it shouldnt be here.
im writing a python cgi script and in one script i generate a list of tuples containing strings such as:
[('Cambridge', 'Cambridge job', 'images/slideshow/Cambridge.jpg'), ('Porsche', "It's a Porsche", 'images/slideshow/Porsche.jpg'), ('Ferrari', "It's a Ferrari", 'images/slideshow/Ferrari.jpg'), ('Lambo', 'Lamborghini', 'images/slideshow/Lambo.jpg'), ('Koenigsegggggggggggggggggggggggg', 'Can you spell that please?', 'images/slideshow/Koenigsegg.jpg')]
and then use this to generate an html page. once the form on this new page has been submitted, i somehow need to get access to this list data again so it can be proccessed by the next script. the data cant be put into a hidden field because of the mix of single of double quotes it may contain (plus the length it could possibly be may cause issues with the post method) and i have been unsuccessful with cookies because only strings can be put into cookies (unless i use a smartcookie but they are deprecated due to security issues).
can anyone help me please. i have spent half a day trying different methods to no avail. i still think cookies are the best way to do this, but im not sure how to implement it.