in reply to Re^2: CGI: which field has changed?
in thread CGI: which field has changed?
This actually proved harder than I thought. Partly it was because I did something stupid (CGI: retaining textarea contents in hidden field), but even with this fixed, things didn't work as I expected. My code is now working as I want, but I have the following two lines in my code:
print hidden(-name => "Old" . $param , -value => $value); param( -name => "Old" . $param , -value => $value);
I can't find any documentation that indicates that the second line should be needed, but if I leave it out, the values don't get saved. I therefore report this in case anyone else runs into the same problem. Of course, if this should need only one line and I'm doing something else daft, I'd love to know.
Regards,
John Davies
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: CGI: which field has changed?
by Anonymous Monk on Mar 14, 2011 at 11:45 UTC | |
by davies (Monsignor) on Mar 14, 2011 at 12:37 UTC |