Help for this page

Select Code to Download


  1. or download this
    my %textvals = (
        name  => '',
    ...
        size => 50,
        ...
    );
    
  2. or download this
    my %areavals = (
        name  => '',
    ...
        mutiple => 1,
        ...
    );
    
  3. or download this
    my %name = (
       name => 'name',
       fieldtype => 'textfield',
    }
    
  4. or download this
    my %subject = (
        name => 'email',
    ...
        fieldtype => 'popup',
        optvals => [qw/option1 option2 option3 option4/],
    );
    
  5. or download this
    my $page = CGI->new();
    my $tb = 0;
    foreach $field (@formfields) {
        my $vals;
        $vals = \%textvals  if ($field->fieldtype eq 'textfield') ;
    
  6. or download this
        $vals = \%areavals  if ($field->fieldtype eq 'textarea') ;
        $vals = \%popupvals if ($field->fieldtype eq 'popup');
    ...
        ....
        $page->textfield($vals)  if ($field->fieldtype eq 'textfield') ;
        $page->textarea($vals)   if ($field->fieldtype eq 'textarea') ;
    
  7. or download this
        $page->popup_menu($vals) if ($field->fieldtype eq 'popup') ;
        ... etc ... for each field type that might exist in the form.
    }