home *** CD-ROM | disk | FTP | other *** search
- #!/user/a61/perl/bin/perl
- # #!/usr/local/bin/perl
-
- $input_error = "Cannot process input";
- $file_error = "Cannot open file";
-
-
- # Read arguments
- if ($#ARGV == 1) {
- $message_input = @ARGV[0];
- $postcard_input = @ARGV[1];
- # if ( !($arg eq "Greetings" || $arg eq "Merry" || $arg eq "Happy") ) {
- # print "Usage: message.cgi [Greetings|merry|Happy]\n";
- # exit(0);
- # }
- }
- else {
- # print "Usage: message.cgi [Greetings|merry|Happy]\n";
- exit(0);
- }
-
-
- # HTML output
- #
- print "Content-Type: text/html \n\n";
- print "<HTML><HEAD><title>Postcard Preview</title></HEAD>\n";
-
- print "<BODY background=\"/Images/expo_hbk_01.gif\" BGCOLOR=\"#FFFFFF\" TEXT=\"#000000\" LINK=\"#97694F\" VLINK=\"#42426f\"> \n";
-
- print "<a href=\"/main.html\"><img align=\"left\" width=\"533\" height=\"127\" SRC=\"/Images/fair_header.gif\" border=\"0\"></a> <br clear=\"all\"> \n";
-
-
- print "<form method=\"post\" action=\"http://amsterdam.park.org/Postcards/send/send.cgi\">\n";
- print "<input type=\"hidden\" name=\"message\" value=\"$message_input\">\n";
- print "<input type=\"hidden\" name=\"postcard\" value=\"$postcard_input\">\n";
-
- print "<table cellspacing=\"10\" cellpadding=\"0\">\n";
- print "<tr>\n";
- print "<td rowspan=\"3\" width=\"75\">\n";
- print "<img src=\"../pictures/empty.gif\" width=\"75\">\n";
- print "</td>\n";
- print "<td align=\"left\" valign=\"center\">\n";
- print "<h2>Preview</h2>\n";
- print "<img src=\"../createPostcard.cgi?$message_input+$postcard_input\" width=\"250\" height=\"150\">\n";
- print "</td>\n";
- print "</tr>\n";
- print "<tr>\n";
- print "<td align=\"left\" valign=\"center\">\n";
- print "Now all you have to do is to write the backside of the postcard:<p>\n";
- print "Please fill in your name:<br>\n";
- print "<input type=\"text\" name=\"sender\" size=\"20\" maxlength=\"80\">\n";
- print "<p>the <b>e-mail</b> address of the receiver:<br>\n";
- print "<input type=\"text\" name=\"receiver\" size=\"20\" maxlength=\"80\">\n";
- print "<p>and some text accompanying the postcard, please:<br>\n";
- print "<textarea name=\"text\" cols=\"35\" rows=\"7\" wrap=\"physical\">\n";
- print "</textarea>\n";
- print "</td>\n";
- print "</tr>\n";
- print "<tr>\n";
- print "<td align=\"left\" valign=\"center\">\n";
- print "<input type=\"submit\" value=\" Send! \">\n";
- print "</td>\n";
- print "</tr>\n";
- print "</table>\n";
- print "</form>\n";
-
- print "</BODY></HTML>\n";
-