On Thu, 3 Oct 2002 at 08:52, zentara opined:
z:On Thu, 03 Oct 2002 07:34:13 -0400, [EMAIL PROTECTED] (Zentara)
z:wrote:
z:
z:Oops, keep forgetting the header. :-) The following will
z:send the form variables back to the browser.
z:
z:>#######################################################
z:>#!/usr/bin/perl
z:>use warnings;
z:>use strict;
z:>use CGI;
z:>my $cgi=new CGI;
z:
z:print "Content-type: text/html\n\n";
z:
z:>my %in = $cgi->Vars();
z:>foreach my $key (keys %in){
z:> print "$key\t$in{$key}\n";
z:> }
but, of course, you'll want to html escape anything posted to a form
before it's sent back to the browser. read this for more info on why:
http://www.perl.com/pub/a/2002/02/20/css.html
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]