Problems? Is your data what you think it is? | |
PerlMonks |
Form doesn't get updated after submission to same pageby Hue-Bond (Priest) |
on Oct 17, 2006 at 10:06 UTC ( [id://578725]=perlquestion: print w/replies, xml ) | Need Help?? |
Hue-Bond has asked for the wisdom of the Perl Monks concerning the following question: I don't know how to explain this problem, so let's try with an example: This minimal CGI script shows a page with two paragraphs and a small form that contains a dropdown menu, a textbox and two buttons. The textbox is for illustrative purposes only. After selecting a value from the dropdown menu and clicking the button "Set", the page reloads and the paragraphs show the new value selected, but the textbox stays with the same content (which I don't expect; I think it should change too). Similarly, clicking on "Add" changes the paragraphs but neither the textbox nor the dropdown menu reflect the new value. In the real world, the dropdown menus are for selecting a date (the three typical year, month and day) and the "Add" button is "Go to the next day". I would like that the menus' default options turned into that of the next day (in order to be able to click more times) but, as shown, they stay the same. I thought some kind of persistence of $q caused by mod_perl would be related but I just tried without it and the problem didn't go away.
--
Back to
Seekers of Perl Wisdom
|
|