#!/usr/bin/perl # Michael Tartaglia - Feedback page # User enters comments in a form, and sees what was entered. # ...comments are not actually submitted. use strict; use CGI ":standard"; require template; # REDIRECT TO FEEDBACK.HTML IF QUERY STRING IS NULL print redirect ("../feedback.html") if ($ENV{'QUERY_STRING'} eq ""); template::startHTML("Program # 3","Feedback"); # START PRINTING OUTPUT TABLE print "
| Hello, $FORM{'name'}! | "; print "You like this page's $FORM{'liked'}." if ($FORM{'liked'} ne ""); print " You dislike this page's $FORM{'disliked'}, but no hard feelings." if ($FORM{'disliked'} ne ""); print " Upon asking for your elaboration of your perception of this ", "site, you say, \"$FORM{'reasons'}\" - and I take that to ", "heart!" if ($FORM{'reasons'} ne ""); print " |
|---|