#!/usr/bin/perl -w require "cgi-lib.pl"; use strict; &ReadParse; # Print the header print &PrintHeader; print &HtmlTop ("cgi-lib.pl demo form output"); if ($ENV{'HTTP_USER_AGENT'} =~ /MSIE/){ print "your browser is IE"; }elsif ($ENV{'HTTP_USER_AGENT'} =~ /Safari/){ print "your browser is safari"; } foreach $key (keys %in){ print "$key is $in{$key}\n"; } print < $text

ENDOFTEXT # If you want, just print out a list of all of the variables. print "


And here is a list of the variables you entered...

"; print &PrintVariables(\%input); # Close the document cleanly. print &HtmlBot;