nysus has asked for the wisdom of the Perl Monks concerning the following question:
The above code does not work. It refuses to save my form parameters in the 'query.txt' file. I'm getting no errors. Now here is the kicker: the below simpler code saves my form's contents just fine:... ... ... open (QUERY,'<query.txt'); my $q = new CGI(\*QUERY); close QUERY; ... ... open (QUERY, '>query.txt'); $q->save(\*QUERY); print $q->header(); ... ...
Notice that the only difference between the two codes is that the second does not attempt to restore the parameters. Of course, with the above code I can't restore my parameters, either. I've been at this quite a while and my nerves are getting frayed. Any help is appreciated.... ... ... my $q = new CGI; ... ... open (QUERY, '>query.txt'); $q->save(\*QUERY); print $q->header(); ... ...
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar";
$nysus = $PM . $MCF;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Saving and storing form params with cgi.pm
by Beatnik (Parson) on May 25, 2001 at 13:19 UTC | |
|
Re: Saving and storing form params with cgi.pm
by iakobski (Pilgrim) on May 25, 2001 at 12:31 UTC | |
by perigeeV (Hermit) on May 25, 2001 at 13:09 UTC | |
|
Re: Saving and storing form params with cgi.pm
by nysus (Parson) on May 25, 2001 at 16:44 UTC | |
by bjelli (Pilgrim) on May 25, 2001 at 17:37 UTC | |
by nysus (Parson) on May 25, 2001 at 17:41 UTC | |
by arturo (Vicar) on May 25, 2001 at 18:00 UTC |