I need a script that when ran,
1.uploads a file preferably only of gif format and 25kb in size
2.writes the uploaded files new url into a hidden field in a form ran on multiple pages of field name "pic" so when the form is submitted it is part of the output string,I have it working in a long about way which is the uploaded image goes to another page and then gives the url for it but then users have to copy and paste it back to the original form,a real hassle for them.I was just hoping to make it a simplier process for them but I am far to new to actual figure out how to write a script.

I do hope by reading more I will finally learn how to completely write scripts as I see others do.I seem to dependent on prewritten scripts for now to have the freedom of creativness I would like. Thanks to the people that tried to show me how to work it into the script I had and I have tried but just have not been able to figure where the extra lines needed to be placed in the script and a syntax check showed alot of errors everytime I would try,which was for almost 36 hours straight. Hope there is still hope for me learning this.


In reply to Can somebody write this script?I have tried to rework 1 I have with the help from others here but just couldnt get it to work by perl_newbie

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.