Hi,
I know how to upload a file using a script and thats fine.
BUT, i want to pass along 3 hidden text variables too.

I just cant find an example clear enough or complete enough to follow.
Can somebody please be a genius and tell me how the hell you right it so it just does a simple thing like the following...

Carry in the FILE and the 3 HIDDEN VARIABLES.
Work out what the 3 HIDDEN VARIABLE VALUES are
UPLOAD the FILE dependant on the 3 variables

Basically, I need the 3 variables passed through as they decide where the FILE is going to be uploaded to.
I need to know them before the FILE gets uploaded.

Please please please will someone be good enough to show me how to do this in one simple bit of script.
I think ALOT of people would appreciate it also as all I seem to find are other people asking the same question with no answers.

Hope theres a brainy person out there!!
Thanks =)
Adam
adam_s@lineone.net


In reply to File Upload - AND hidden values by Anonymous Monk

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.