#!/usr/bin/perl ###################################################################### # BEFORE TRYING TO EDIT THIS SCRIPT, READ THE README FILE ###################################################################### # # The Dream Catcher's Web Free CGI Scripts # Form Return # Created by Seth Leonard # # http://dreamcatchersweb.com/scripts/ # # (c)2000 Seth Leonard # All Rights Reserved # ###################################################################### # ONLY EDIT THIS PART OF THE SCRIPT!!!! $backurl = "http://final-year-projects.com"; $backname = ""; $mailprog = '/usr/lib/sendmail'; $youmail = 'mikehart@unforgettable.com'; # DO NOT EDIT BELOW THIS LINE!!!! ################################################################# read(STDIN, $namevalues, $ENV{'CONTENT_LENGTH'}); open (MAIL, "|$mailprog $youmail") || die "Can't open $mailprog!\n"; print MAIL ("To: $youmail\n"); print MAIL ("From: Internet User\n"); print MAIL ("Subject: Form Response\n\n"); # Process info from Fill in Form @namevalues = split(/&/, $namevalues); foreach $namevalue (@namevalues) { ($name, $value) = split(/=/, $namevalue); $name =~ tr/+/ /; $value =~ tr/+/ /; $name =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; $INPUT{$name} = $value; unless ($value eq "") { print MAIL ("$name: $value\n"); } } close (MAIL); # Print Follow up HTML print ("Content-Type: text/html\n\n"); print ("Thank You\n"); print ("

Thank You For Filling in the Requested Information

\n"); print ("The information has been sent and here is what you submitted:
\n"); foreach $namevalue (@namevalues) { ($name, $value) = split(/=/, $namevalue); $name =~ tr/+/ /; $value =~ tr/+/ /; $name =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; $INPUT{$name} = $value; unless ($value eq "") { print ("$name: $value
\n"); } } print ("
\n"); print ("Back to $backname
\n"); print ("© Dream Catchers Technologies, Inc.\n"); print ("\n"); exit;