Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: perl CGI form ignores value

by rjt (Deacon)
on Sep 17, 2012 at 03:10 UTC ( #993948=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my $q = new CGI;
        my %vars = $q->Vars; # Fetch all CGI parameters
    ...
    
        # Fetch all defaults from the DB and return as a hash ref
        sub pop_defaults { my $r = { }; ... return $r }
    
  2. or download this
        $vars{$_} = $db_vars{$_} // $q->param($_) for ($q->param);
    
  3. or download this
        %vars{keys %db_vars} = values %db_vars;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://993948]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2016-09-29 09:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (551 votes). Check out past polls.