Interesting is that if I change that print hidden() by a print of the
real html code, the value printed is not the correct either.
So, it seems the browser is confused when rendering the page. CGI posts
al the defined variables back again?
Alberto
Alberto Manuel Brandão Simões wrote:
Suppose you have a CGI, and param("foo") is "bar".
if (param("foo") eq "bar") {
print start_form;
print hidden("foo","ugh"); ## prints "bar" as the value, not "ugh"
print end_form;
}
To correct the behaviour...
if (param("foo") eq "bar") {
print start_form;
param("foo", "ugh");
print hidden("foo","ugh"); ## prints "bar" as the value, not "ugh"
print end_form;
}
Alberto
--
Alberto Simões - Departamento de Informática - Universidade do Minho
Campus de Gualtar - 4710-057 Braga - Portugal