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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |