Welcome to WebmasterWorld Guest from 54.144.243.34

Forum Moderators: coopster & jatar k & phranque

store a list item

   
3:03 pm on Jul 23, 2008 (gmt 0)

5+ Year Member



hi

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.

6:25 am on Jul 24, 2008 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld [webmasterworld.com], mitch!

you can put the data in a hidden field if you first replace all double quotes in the string with the " html entity.

8:09 am on Jul 24, 2008 (gmt 0)

5+ Year Member



thanks
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month