What I am trying to accomplish is to restructure the code to write data gathered from an html form to a user selected directory from the same form...

$catagory

this is selected by the user so if the user wanted to select catagory x, then data would only be sent to directory x, or if catagory y was selected, then data would be sent to directory y.

# Define Variables $basedir = "$ENV{'DOCUMENT_ROOT_OLD'}/www/myfile"; $baseurl = "http://www.whatever.com/myfile"; $cgi_url = "http://www.whatever.com/cgi-bin/perl.pl"; $mesgdir = "messages"; $datafile = "data.txt"; $mesgfile = "myfile.html"; $ext = "html"; $title = "My File"; # Done

This only sends data to the specified location...only one directory, I was hoping that I could some how change it to write to a user selected directory(1 out of 27 directories) The original code was from a friend who modified Matt Wright's WWWboard code a little to have seperate output from being clumped together. I thought if that was possible, I could modify it further by sending data to a selected directory by the user. If no one can help me, then please say so, but if someone can help, then let me know what I can do. I have some books on perl and cgi but they are dated 97 or eairler and I can't seem to wrap my head around them. Please forgive me, I am frustrated and cannot seem to understand scripting, let alone learn it or even afford to have someone to write it for me. Maybe I shouldn't even be here since I have no understanding of scripting.

In reply to Re^5: Will this work? by saffron
in thread Will this work? by saffron

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.