jerrygarciuh has asked for the wisdom of the Perl Monks concerning the following question:
I get my params and their values. Will someone please point out whatever it is that I fail to comprehend about this process.my $date = $q->param( 'date' ); my $filet = $q->param( 'filet');
_____________________________________________________#!/usr/local/bin/perl -wT use strict; use lib qw(/home/nolaflash/www/local_mods); use CGI ':standard'; use CGI::Carp qw/fatalsToBrowser /; use CGI::Pretty qw( :html3 ); my $q = CGI->new(); if ( $q->param() ) { parse_form(); } sub parse_form { my $sr; my @names=$q->param; foreach my $str (@names) { $sr->{$str} =$q->param($str); } print $q->header,start_html," @names $action $time $date filet = $ +filet",end_html; exit; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: Lost Values from parse_form Sub
by jeffa (Bishop) on Mar 10, 2002 at 15:39 UTC | |
by jerrygarciuh (Curate) on Mar 10, 2002 at 17:43 UTC | |
by jeffa (Bishop) on Mar 10, 2002 at 18:03 UTC |