home *** CD-ROM | disk | FTP | other *** search
- #!/usr/local/bin/perl
-
- # The above line explains where your perl program is. You'll need to
- # change it to reflect the location of your program on your system.
- # If you don't know where it is, type "which perl" or "whereis perl"
- # at the command line and substitute the resulting path for the path
- # above.
-
- unshift (@INC, "/usr/local/etc/httpd/cgi-bin/Library");
-
- require "cgi-lib.pl";
- &ReadParse(*MYDATA);
-
- $customer_service_email = "selena\@eff.org";
- $mail_program = "mail";
- $get_info_who = "./register.temp";
-
- open (NOTE, ">$get_info_who") || die "Could not open the file";
-
- print NOTE "Someone has been perusing the Computer Outlet!\n\n";
- print NOTE " Name: $MYDATA{'name'}\n";
- print NOTE " Phone: $MYDATA{'phone'} \n";
- print NOTE " E-Mail: $MYDATA{'email'} \n";
- print NOTE " Referring Distributor: $MYDATA{'referrer'} \n";
-
- close (NOTE);
- system ("$mail_program -s Registration $customer_service_email < $get_info_who");
-
- print "Content-type: text/html\n\n";
- print "<HTML><HEAD><TITLE>Feedback Response</TITLE></HEAD><BODY> \n";
- print "<H1><CENTER>Thanks for your feedback.</H1></CENTER>\n";
- print "</BODY></HTML>";
-
-