Help for this page

Select Code to Download


  1. or download this
    my @field = qw(
       Title Email City State Country URL
    ...
       . join(', ', map "'$_'", @fields)
       . ') VALUES (?,?,?,?,?,?,?,?,NULL, NOW(), 0)'
    );
    
  2. or download this
    use CGI qw(:standard);
    
    ...
    die unless is_valid_email($field{Email});
    
    $insert_sth->execute(values %field);