#!/usr/local/bin/perl # order.pl # ITA online order form # 2/22/96 Brian Goldman # last modified 3/10/96 # This should match the mail program on your system. $mailprog = '/usr/sbin/sendmail'; # E-mail address of form recipient. $recipient = 'immigration@wave.net'; # Print out a content-type for HTTP/1.0 Compatibility print "Content-type: text/html\n\n"; print "
\n"; # Print a title and initial heading print ""; $FORM{$name} = $value; } # Check for blank fields &blank_response unless $FORM{'name'}; &blank_response unless $FORM{'address'}; &blank_response unless $FORM{'city'}; &blank_response unless $FORM{'country'}; &blank_response unless $FORM{'zip'}; &blank_response unless $FORM{'phone'}; &blank_response unless $FORM{'cards'}; &blank_response unless $FORM{'cardno'}; &blank_response unless $FORM{'expdate'}; # -------------------------------------------------- if ( $FORM{'immusa'} ne ""){$ototal= $ototal + 79;} if ( $FORM{'saf'} ne ""){$ototal= $ototal + 59;} # ------------------------------------------------- open (MAIL, "|$mailprog $recipient") || die "Can't open $mailprog!\n"; print MAIL "Reply-to: $FORM{'name'}\n"; print MAIL "Subject: ITA ORDER FORM\n\n"; print MAIL "----------------------------------------\n"; print MAIL "Name: $FORM{'name'}\n"; print MAIL "Company: $FORM{'name'}\n"; print MAIL "Address: $FORM{'address'}\n"; print MAIL "Address2: $FORM{'address2'}\n"; print MAIL "City: $FORM{'city'}\n"; print MAIL "State: $FORM{'state'}\n"; print MAIL "Country: $FORM{'country'}\n"; print MAIL "Zip: $FORM{'zip'}\n"; print MAIL "Phone: $FORM{'phone'}\n"; print MAIL "Fax: $FORM{'fax'}\n"; print MAIL "e-mail: $FORM{'email'}\n"; print MAIL "------------------------------------\n"; print MAIL "Cardtype: $FORM{'cards'}\n"; print MAIL "Cardnumber: $FORM{'cardno'}\n"; print MAIL "Exp. Date: $FORM{'expdate'}\n"; print MAIL "------------------------------------\n"; print MAIL "USA: $FORM{'immusa'}\n"; print MAIL "Scan-a-Form: $FORM{'saf'}\n"; print MAIL "-------------------------------------\n"; print "
"; print ""; print ""; exit; # ------------------------------------------------------------- # Subroutine blank_response sub blank_response{ print "You failed to give the required information.