Ignore:
Timestamp:
07/27/10 13:15:56 (14 years ago)
Author:
Kris Deugau
Message:

/branches/htmlform

Switch all scripts to use CGI::Simple for HTML form data munging
instead of legacy CommonWeb.pm sub. Remove parse_post() sub from
CommonWeb.pm. See #15.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/htmlform/cgi-bin/admin.cgi

    r438 r447  
    1515use warnings;
    1616use CGI::Carp qw(fatalsToBrowser);
     17use CGI::Simple;
    1718use DBI;
    1819use CommonWeb qw(:ALL);
     
    6263}
    6364
    64 my %webvar = parse_post();
    65 cleanInput(\%webvar);
     65# Set up the CGI object...
     66my $q = new CGI::Simple;
     67# ... and get query-string params as well as POST params if necessary
     68$q->parse_query_string;
     69
     70# Convenience;  saves changing all references to %webvar
     71##fixme:  tweak for handling <select multiple='y' size=3> (list with multiple selection)
     72my %webvar = $q->Vars;
    6673
    6774print "Content-type: text/html\n\n".
Note: See TracChangeset for help on using the changeset viewer.