Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

CGI.pm OO vs. FO

by hok_si_la (Curate)
on Sep 09, 2005 at 19:54 UTC ( [id://490729]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
       
    use strict;
    use CGI;
    ...
    
    $cgi = new CGI;
    %IN = $cgi->Vars; #%IN = (param1 => value1, param2 => value2 , etc..);
    
  2. or download this
    if (defined $IN{location}) {
       $where .= "AND (location = '$IN{location}[0]'";
       for my $i (@{$IN{location}}) { $where .= "$i" };
       $where = "$where)";
    }
    
  3. or download this
    
    delete $IN{somekey};
    ...
    $sql = "$function $tablename ($key_string) values ($value_string)";
    $sth = $dbh->prepare($sql);
    $sth->execute();
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://490729]
Approved by kutsu
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-24 23:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found