ultranerds has asked for the wisdom of the Perl Monks concerning the following question:
use CGI; my $cgi = new CGI; my $fh = $cgi->upload('client_local_offer_image_url'); print $IN->header; print STDERR "HERE ... \n"; while (< $fh >) { print STDERR $_ ; } print "HERE"; exit;
<form name="offerForm" id="offerForm" action="/form.cgi" method="post" + enctype="multipart/form-data"> <input type="hidden" name="action" value="catalog_online" /> <input type="hidden" name="do" value="client_manage" /> <input type="hidden" name="func" value="add_do" /> <input type="hidden" name="user_client_id" value="1" /> <table width="100%" border="0" cellspacing="0" cellpadding="4" bgcolor +="#DDE8F4"> <tr bgcolor="#6699CC"> <td colspan="2" height="1" width="100%" class="background_bleu +_fonce_top"><img src="http://images.site.org/images/v2/clear_shim.gif +" width="10" height="1" border="0"><br></td> </tr> <tr> <td width="43%" align="right"><font face="Verdana,Arial,Helvet +ica" size=2 color="#191C1F">Title:</td> <td><font face="Verdana,Arial,Helvetica" size=2 color="#191C1F +"><input type="text" class="button required" name="client_local_offer +_title" size="40" value=""> *</td> </tr> ... more HTML and options <tr> <td width="43%" align="right"><font face="Verdana,Arial,Helvet +ica" size=2 color="#191C1F">Image:</td> <td><font face="Verdana,Arial,Helvetica" size=2 color="#191C1F +"><input type="file" class="button" name="client_local_offer_image_ur +l" size="40"> *</td> </tr> ... more HTML and options </table> </form>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File upload is refusing to work
by 7stud (Deacon) on Nov 16, 2010 at 18:27 UTC | |
|
Re: File upload is refusing to work
by Anonymous Monk on Nov 16, 2010 at 12:52 UTC | |
by ultranerds (Hermit) on Nov 16, 2010 at 12:57 UTC | |
by ultranerds (Hermit) on Nov 16, 2010 at 13:14 UTC | |
by Anonymous Monk on Nov 16, 2010 at 14:05 UTC | |
by Anonymous Monk on Nov 16, 2010 at 14:07 UTC |