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 "

Cancer Genomics Online Library Addition Form

\n"; if ($query->param('Action') eq 'Submit') { # we have some data print "

Entry Results

\n"; # check data if (&check_entry($query) == 0) { &print_success($query); &make_entry($query); } else { print "

Errors Found

\n"; 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 \n \n \n \n \n \n \n \n \n \n
Title: $pubtitle
Author: $pubauthor
Publish Date: $pubdate
Journal: $pubjournal
Category: $pubcategory
URL: $puburl
Keywords: $pubkey1   $pubkey2   $pubkey3   $pubkey4
Comments: $pubcomments
Posted:
\n \n $yourphone\n
Name of Poster: $yourname
Email of Poster: $youremail
Daytime Phone of Poster:
END close PUBFILE; }