homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
Forum Library, Charter, Moderators: coopster & jatar k & phranque

Perl Server Side CGI Scripting Forum

store a list item

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


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)

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)


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved