lpoht has asked for the wisdom of the Perl Monks concerning the following question:
When I submit a file, the program never reaches these lines (the program never dies). However if I goto the url "newimage.cgi?Submit=test", the program promptly dies. I'm using HTML templates, but the same problem occurs when I use static HTML. Below is the HTML code:if ($query->param("Submit")){ die; }
I didn't include my CGI program because I don't feel that the code is the problem. Thanks for any help you can provide.<form name="upload" method="post" action="newimage.cgi" enctype="mult +ipart/form-data"> <table border="0" cellpadding="0" cellspacing="0"> <tr><td height="50"> </td></tr> <tr> <td colspan="2"> File: <input type="file" name="file" size="40"> </td> </tr> <tr><td colspan="2"> <input type="submit" name="Submit" value="Add Image"> <input type="reset" name="Reset" value="Reset"> </td></tr> <tr><td colspan="2"> <font color="#CC0000" size="-1"></font> </td></tr> </table> </form>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI file upload - endless loop??
by Abstraction (Friar) on Jul 17, 2002 at 19:28 UTC | |
|
Re: CGI file upload - endless loop??
by sedhed (Scribe) on Jul 18, 2002 at 01:26 UTC | |
by lpoht (Sexton) on Jul 19, 2002 at 19:17 UTC | |
by sedhed (Scribe) on Jul 19, 2002 at 21:07 UTC | |
by lpoht (Sexton) on Jul 21, 2002 at 19:18 UTC | |
|
Re: CGI file upload - endless loop??
by joealba (Hermit) on Jul 17, 2002 at 20:40 UTC | |
|
Re: CGI file upload - endless loop??
by lpoht (Sexton) on Jul 18, 2002 at 18:01 UTC |