httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco Kleefman <marco.kleef...@cmg.nl>
Subject mod_perl/hidden form-vars
Date Tue, 02 May 2000 11:24:29 GMT
Hello,

I am using CGI.pm and Apache in a mod_perl combination. My scripts generate
html-output.
See this snippet:

print "future_sent: @future_sent<br>";
push (@sent, $future_sent[0]);
shift (@future_sent);
print "sent: @sent<br>";
print "future_sent: @future_sent<br>";
print hidden(-name=>'future_sent', -value=>\@future_sent);

This (part of) subroutine is executed several times until @future_sent is
empty and @sent is full. Let's say: @future_sent is filled initially with:
1,2,3

I would expect the following output:

future_sent: 1 2 3
sent: 1
future_sent: 2 3

+ the writing of the hidden form-variable with the value: 2 3

BUT, the script writes the initial value (1 2 3) to the hidden field.

Does anybody how come?

TIA

Marco Kleefman

Mime
View raw message