#!/usr/bin/perl -w use strict; use CGI qw(:html3); open ('QUERY', '<query.txt') || die "Cannot open: $!"; my $q = new CGI ('QUERY'); close QUERY; BEGIN { use CGI::Carp qw(carpout fatalsToBrowser); open (LOG, ">errorlog.txt") or die ("Unable to open errorlog.txt: $!\n"); carpout(\*LOG); } open (QUERY, '>query.txt') || die "Cannot open: $!"; $q->save('QUERY'); print $q->header(); print $q->start_html(); print $q->startform("post",'eventform.cgi'); print $q->textfield(-name=>'field_name', -size=>50, -maxlength=>80); print $q->submit(-name=>'button_name', -value=>'value'); print $q->endform; print $q->end_html(); close QUERY;
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar";
$nysus = $PM . $MCF;
In reply to Re: Saving and storing form params with cgi.pm
by nysus
in thread Saving and storing form params with cgi.pm
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |