spewn
Programmer
- May 7, 2001
- 1,034
here is the code...
**
count.cgi
#!/usr/local/bin/perl
my $cfile = "./data/count.dat";
open (COUNTER, "$cfile"
;
my $count = <COUNTER>;
close (COUNTER);
$count += 1;
open (COUNTER, ">$cfile"
;
print COUNTER ("$count"
;
close (COUNTER);
print"Location:
**
i would like to pass a value to the program, then use the if/else conditional based on that value...
any ideas?
since count.cgi is called through a link, i though i could use ../count.cgi?id=val1 but that didn't seem to work.
**
count.cgi
#!/usr/local/bin/perl
my $cfile = "./data/count.dat";
open (COUNTER, "$cfile"
my $count = <COUNTER>;
close (COUNTER);
$count += 1;
open (COUNTER, ">$cfile"
print COUNTER ("$count"
close (COUNTER);
print"Location:
**
i would like to pass a value to the program, then use the if/else conditional based on that value...
any ideas?
since count.cgi is called through a link, i though i could use ../count.cgi?id=val1 but that didn't seem to work.