Re: CGI.PM and hidden()
- From: "Mumia W." <paduille.4061.mumia.w+nospam@xxxxxxxxxxxxx>
- Date: Sun, 13 Apr 2008 14:36:16 -0500
On 04/13/2008 12:12 PM, dtshedd@xxxxxxxxx wrote:
[...]
print hidden(-name=>"page", -value=>$page);
problem is that the new line does not print the correct value of $page
(its supposed to change every pass through the perl code), [...]
You should create a small (but complete) script that demonstrates the problem you're having. For example, see this program:
#!/usr/bin/perl
use strict;
use warnings;
use CGI qw/:standard/;
use File::Slurp;
my $counter = '/tmp/ses/count';
-f $counter || write_file($counter, '0');
my $page = read_file($counter) + 1;
write_file($counter, $page);
print header('text/plain');
print hidden(-name=>"page", -value=>$page);
.
- References:
- CGI.PM and hidden()
- From: dtshedd
- CGI.PM and hidden()
- Prev by Date: CGI.PM and print table
- Next by Date: Re: CGI.PM and hidden()
- Previous by thread: CGI.PM and hidden()
- Next by thread: Re: CGI.PM and hidden()
- Index(es):
Relevant Pages
|
|