Holding data between form posts
Posted on 2004-10-07
I have a page that contains a number of dropdowns and text boxes
Two of the dropdowns interact with each other i.e. Dropdown one controls the content of dropdown two. [This content is read from a Sybase database]
my $co = new CGI;
my $currenturl = $co->url;
if(projectid < 1)
urlTo = url;
urlTo = url + "?ProjectID="+projectid;
window.location.href = urlTo;
when the page is reloaded it checks the ProjectID parameter and changes the content of the second dropdown.
this stuff works fine the only problem is I need to keep the data that was on the page prior to the page being redirected.
How do I do this?