Help for this page

Select Code to Download


  1. or download this
    #!/usr/local/bin/perl -wT
    use strict;
    ...
        print "Name = $name, Value = " . param( $name ) . "<br>\n";
    }
    print end_html;
    
  2. or download this
    color=red&color=blue&color=some%20other%20value
    
  3. or download this
    foreach my $name ( @names ) {
        my @values = param( $name );
        print "Name = $name, Value(s) = " , join (',' @values) , "<br>\n";
    }
    
  4. or download this
    # Assign param() to a scalar and you only get the first value
    my $value  = param( $name );
    
    # Assign param() to an array and you get all of the values
    my @values = param( $name );