I think what hasn't been mentioned so far is that the form doesn't have the elements that would make the browser actually upload the zipfile.  Maybe I'm misunderstanding things completely... but I thought I'd mention it — just in case... :)

How is the file supposed to be transferred to the server? You say in your PHP code

echo " This program uploads a zip file via ftp to a server <br>";

Is that "ftp" to be taken literally? If so, what/who is performing the FTP transfer? Is this being done separately (manually) before the form is submitted? Or is the file meant to be uploaded via the browser / HTTP upon submitting the form?

In case of the latter, there would normally need to be an <input type="file" ... >, together with the enctype="multipart/form-data" within the <form> tag.  In other words, as it is at the moment, one problem might be that nothing is really being uploaded, which would also explain why the unzipping doesn't work yet...


In reply to Re: HTML Form and Perl by almut
in thread HTML Form and Perl by workman_m

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.