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/main.cgi

    r442 r447  
    1212use warnings;   
    1313use CGI::Carp qw(fatalsToBrowser);
     14use CGI::Simple;
    1415use DBI;
    1516use CommonWeb qw(:ALL);
     
    5556
    5657
    57 # Global variables
    58 my %webvar = parse_post();
    59 cleanInput(\%webvar);
     58# Set up the CGI object...
     59my $q = new CGI::Simple;
     60# ... and get query-string params as well as POST params if necessary
     61$q->parse_query_string;
     62
     63# Convenience;  saves changing all references to %webvar
     64##fixme:  tweak for handling <select multiple='y' size=3> (list with multiple selection)
     65my %webvar = $q->Vars;
    6066
    6167
Note: See TracChangeset for help on using the changeset viewer.