#! /usr/local/bin/perl -w use strict; use CGI (); use Mail::Internet (); use vars qw($q); use lib qw(.); use HTML qw($q); # HTML.pm is in the same dir as script.pl $q = CGI->new; # avoid mailx etc. $ENV{'PERL_MAILERS'} = "mail:/donotuse:sendmail:/usr/sbin/sendmail"; $ENV{'MAILADDRESS'} = 'webmaster@mail.lns.cornell.edu'; my $to = "chris237\@gmail.com"; my $query = new CGI; my @fields = ( 'Name', 'Email', 'Phone', 'InstName', 'InstStreet', 'InstCity', 'InstState', 'InstZip', 'Lodging', 'ContactName', 'ContactPhone' ); print $query->header(); HTML::printmyheader(); if (!$query->param('Name')) { print "

Missing a name.

\nPress the back button and please provide your name.\n"; } else { my @body; for my $field (@fields) { push @body, sprintf("%-15s %s\n", $field.":", $query->param($field)) if $query->param($field); } push @body, sprintf("\nsubmitted from: %s (%s)\n", $ENV{'REMOTE_ADDR'}, $ENV{'REMOTE_HOST'} || "no reverse DNS" ); my $submitted_name = $query->param('Name'); my $submitted_email = $query->param('Email'); my $submitted_phone1 = $query->param('Phone'); my $submitted_inst = $query->param('InstName'); my $submitted_street = $query->param('InstStreet'); my $submitted_city = $query->param('InstCity'); my $submitted_state = $query->param('InstState'); my $submitted_zip = $query->param('InstZip'); my $submitted_lodging = $query->param('Lodging'); my $submitted_contact = $query->param('ContactName'); my $submitted_phone2 = $query->param('ContactPhone'); my $subLodgeOnCampus = ""; my $subLodgeOther = ""; my $subLodgeNone = ""; if ($submitted_lodging eq "OnCampus"){ $subLodgeOnCampus = "checked"; }elsif ($submitted_lodging eq "Other"){ $subLodgeOther = "checked"; }elsif ($submitted_lodging eq "None"){ $subLodgeNone = "checked"; } print qq(Please review the information you have entered. Press Submit to send your registration.

); print << "newpage";








  1. What is the address of this institution?

  2. I would like on-campus lodging for $55 per night.
    I will make other arrangements.
    I will not be staying over night.

  3. Please provide emergency contact information
newpage } HTML::printmytrailer();