my $query = new CGI; $query->param('Action') = "nothing yet"; #PRINT HEADER print $query->header; print $query->start_html( -title=>'Add to the Cancer Genomics Online Library'); # -script=>$JSCRIPT); #PRINT TITLE &print_title; #PRINT FORM print "
Please correct the errors above on the form below.\n";
&print_form($query);
}
}
else
{
&print_intro;
&print_form($query);
}
&print_tail;
print $query->end_html;
#End of Program
####
sub make_entry
{
my($query) = @_;
my $PUBFILE = "temp.html";
open PUBFILE, ">$PUBFILE";
select STDOUT;
my $pubtitle = $query->param('pubtitle');
my $pubauthor = $query->param('pubauthor');
my $pubdate = $query->param('pubdate');
my $pubjournal = $query->param('pubjournal');
my $pubcategory = $query->param('pubcategory');
my $puburl = $query->param('puburl');
my $pubkey1 = $query->param('pubkey1');
my $pubkey2 = $query->param('pubkey2');
my $pubkey3 = $query->param('pubkey3');
my $pubkey4 = $query->param('pubkey4');
my $pubcomments = $query->param('pubcomments');
#my $pubupload
my $yourname = $query->param('yourname');
my $youremail = $query->param('youremail');
my $yourphone = $query->param('yourphone');
print PUBFILE <\n
Title: $pubtitle \n
Author: $pubauthor \n
Publish Date: $pubdate \n
Journal: $pubjournal \n
Category: $pubcategory \n
URL: $puburl \n
Keywords: $pubkey1   $pubkey2   $pubkey3   $pubkey4 \n
Comments: $pubcomments \n
Posted: \n
END
close PUBFILE;
}
Name of Poster: $yourname \n
Email of Poster: $youremail \n
Daytime Phone of Poster: $yourphone\n