Changeset 236
- Timestamp:
- Oct 29, 2006, 7:25:08 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/npemap.org.uk/perllib/NPEMap.pm
r221 r236 11 11 require Exporter; 12 12 @ISA = qw(Exporter); 13 @EXPORT = qw(setup_dbh );13 @EXPORT = qw(setup_dbh print_html_err); 14 14 15 15 sub setup_dbh { … … 19 19 } 20 20 21 sub print_html_err($$) { 22 my $err = shift; 23 my $returnlink = shift; 24 print "Content-type: text/html\n\n"; 25 print "<html><head><title>Error submitting</title></head>\n"; 26 print "<body><p>The following error occurred whilst submitting data:\n"; 27 print CGI::escapeHTML($err); 28 print "</p><p>$returnlink</p>\n"; 29 print "</body></html>\n"; 30 } 31 21 32 1;
Note: See TracChangeset
for help on using the changeset viewer.