Ok I know I have asked this question before under my replies, but I really haven't got to my answer, so here is a very detailed explanation of what I want to do :

Ok we first start out with a form much like this one -

<form method="post" action="test.cgi"> Server Address :<input type=text name="server_address" size=30> <br> Use Secure Server :<input type=text name="use_secure_server" size=2 ma +xlength=3 value="no"><br> Secure Server Domain :<input type=text name="secure_server_domain" siz +e=30> <br> Secure Server Address :<input type=text name="secure_server_address" s +ize=30> <br> Secure Cgi Directory :<input type=text name="secure_cgi_directory" val +ue="/cgi-bin" size=30><br> Secure CSS Directory :<input type=text name="secure_css_directory" val +ue="/" size=30> <br> Secure Image Directory :<input type=text name="secure_image_directory" + value="/images" size=30><br> Secure Script Directory :<input type=text name="secure_script_director +y" value="/" size=30> <br> Use CgiWrap :<input type=text name="use_cgiwrap" value="no" size=3 max +length=3> <br> CgiWrap Directory :<input type=text name="cgiwrap_directory" value="/c +gi-sys/cgiwrap/demostore" size=30> <br> Cgi Directory :<input type=text name="cgi_directory" value="/cgi-bin" +size=30> <br> <input type=submit value=Save> </form>

Then when the information is submitted it is then placed in a file called test.cfg, which now looks like this :

$server_address = '';
$use_secure_server = 'no';
$secure_server_domain = '';
$secure_server_address = '';
$secure_cgi_directory = '/cgi-bin';
$secure_css_directory = '/';
$secure_image_directory = '/images';
$secure_script_directory = '/';
$use_cgiwrap = 'no';
$cgiwrap_directory = '/cgi-sys/cgiwrap/demostore';
$cgi_directory = '/cgi-bin';

Ok now that information is stored inside of the cfg file so that another script can use it for it's replacement values. Now here is the problem that I have. Lets say that I want to go back to the form and update whats in the cfg file. Ok when I go back to the form I want to see what I entered in the input boxes before, so I only have to make changes to what I want to be updated. How do I get the form to read what has already been entered before out of the cfg file? I would really appreciate any help if possible. If you would like, you can send me an email to jmoore@netphase.net. Thanks once again for your help.

Jonathan


In reply to form to data to form by jmoore

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.