My question about what I'm doing so far pertains to the values received from the POST inputs. I'm wanting to initialize the "databaseName", "databaseUsername", "databasePassword", etc. variables as having no values. These values will be set to whatever the administrator sets them to from the install.php file via the POST inputs. Wordpress makes you FTP into the web space to manually edit a config file. What I'm wanting to do is give the administrator the ability to do that operation through the browser.
One problem I'm running into is the following:
Code: Select all
<fieldset>
<legend>Database Management</legend>
<form action="<?php echo ABSPATH;?>backside/inc/constants.php" method="post">
<ul>
<li><label>Database Name:</label> <input type="text" name="dirty_db_name" /></li>
<li><label>Database Username:</label> <input type="text" name="dirty_db_user" /></li>
<li><label>Database Password:</label> <input type="text" name="dirty_db_pass" /></li>
<li><label>Database Host:</label> <input type="text" name="dirty_db_host" /></li>
<li><label>Database Prefix:</label> <input type="text" name="dirty_db_prefix" /></li>
<li><label>In Development Mode?:</label> <input type="checkbox" name="tutorial" value="HTML" /></li>
</ul>
<p><input type="submit" value="Submit" /></p>
</form>
</fieldset>Is this possible or am I making this way too worse than what it has to be?