Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Thanks in advance,#!/usr/bin/perl -w use strict; use warnings; use CGI; use CGI::Carp qw(fatalsToBrowser); #errors will show in the browser my $newStyle; my $co=new CGI; print $co->header, $co->start_html( -title=>'fileupload.cgi', -BGCOLOR=>'#FFFFFF', -style=>{-src=>'http://localhost/html/stylesheet.css', -code=>$newStyle} ), $co->start_multipart_form( -method=>'POST', -action=>"fileupload2.cgi", -enctype=>"multipart/form-data", ), $co->p, $co->filefield( -name => 'file', -default => "starting value", -size => 30, -maxlength => 80, ), http://localhost/html/add.bmp", -value => "starting value", ), $co->p, $co->image_button( -name => "submit", -src => "http://localhost/html/add.bmp", ), $co->end_multipart_form; $co->end_html; exit 0;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: cgi question - using an image button for filefield
by simon.proctor (Vicar) on Nov 12, 2004 at 15:50 UTC | |
by Anonymous Monk on Nov 12, 2004 at 16:21 UTC | |
by martymart (Deacon) on Nov 15, 2004 at 14:55 UTC |