#!/opt/bin/perl ######################################################### # recommend.pl - web-based emailer # by Andrew B. King. v1.0 19990430 # Copyright (c) 1999-2000 internet.com Corp. All Rights Reserved. # See http://www.webreference.com/scripts/ for more information # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # 03-02-99 added update newltr checkbox - abk # 030499 fixed bugs - abk (subscribe\@webreference.com didn't work in to) # 032599 formatting improved-changed to web based emailer # 042999 new ad enews cgi added - abk ########################################################### #BEGIN{ push(@INC, 'lib2', '/usr/local/lib/perl5'); } use CGI; $QUERY = new CGI; $BLANK = 'blank'; $SUBMIT = 'Send Comments'; $path = $ENV{'HTTP_REFERER'}; $endpage = '
Copyright © 1999-2000 internet.com Corp.
Script revised: Sep. 20, 1999
'; $Line1 = 'Your name: '; $Line2 = 'Your e-mail address: '; $Line3 = "Your friend's name: "; $Line4 = "Your friend's e-mail address: "; $Line5 = 'Your message: '; $Line6 = 'Referer'; $Line10 = 'Send me a copy: '; @REQUIRED = ( $Line1, $Line2, $Line3, $Line4); $data .= $QUERY->startform(undef, '/cgi-bin/recommend.cgi'); $data .= "| *$Line1 | "; $data .= "".$QUERY->textfield($Line1,'',25,70)." |
| *$Line2 | "; $data .= "".$QUERY->textfield($Line2,'',25,70)." |
| *$Line3 | "; $data .= "".$QUERY->textfield($Line3,'',25,70)." |
| *$Line4 | "; $data .= "".$QUERY->textfield($Line4,'',25,70)." |
| $Line5 | "; $data .= "|
| $Line10 | "; $data .= "".$QUERY->checkbox($Line10,1,'on',' ')." |
| "; $data .= " | ".$QUERY->submit($SUBMIT); $data .= $QUERY->defaults('Reset'); $data .= $QUERY->hidden($Line6, $path); $data .= $QUERY->endform; $data .= " |
Thank you for recommending WebReference to $friendsemail. In a few minutes, you should also be receiving confirmation of your recommendation through e-mail. In the meantime, would you like to recommend WebReference to another friend, family member, or colleague? Just use the form below like you did before:
E11 ; print $data; print "\n"; exit(0); } # no errors } else { # no params $heading .= <Feel free to recommend this site (and of course, the newsletter) to friends, family members, or colleagues! Feel free to send as many recommendations as you want. There's always room for another subscriber! (* = required field)
EOT ; } $output = "Status: 200 Ok\r\n"; $output .= $QUERY->header; $output .= $QUERY->start_html('Tell a Friend - WebReference.com', 'aking@webreference.com', '', '', '', '', '', '', '', '', '', 'BGCOLOR="#ffffff"'); $output.= <
|
||||||