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

    r439 r447  
    1414use warnings;   
    1515use CGI::Carp qw(fatalsToBrowser);
     16use CGI::Simple;
    1617use DBI;
    1718use CommonWeb qw(:ALL);
     
    5253# Global variables
    5354my $RESULTS_PER_PAGE = 25;
    54 my %webvar = parse_post();
    55 cleanInput(\%webvar);
     55
     56# Set up the CGI object...
     57my $q = new CGI::Simple;
     58# ... and get query-string params as well as POST params if necessary
     59$q->parse_query_string;
     60
     61# Convenience;  saves changing all references to %webvar
     62##fixme:  tweak for handling <select multiple='y' size=3> (list with multiple selection)
     63my %webvar = $q->Vars;
    5664
    5765if (defined($webvar{rpp})) {
Note: See TracChangeset for help on using the changeset viewer.