I just want to replace a few things in a file called "config.php"! Here is i section of the file that I want to edit. I want to use a form to set the values of the text in caps. I am stuck and I looked all over StackOverflow and google. I could not find anything.
$dbhost = "DBHOST"; /* "localhost" */
$dbuname = "DBUSERNAME"; /* "database user name" */
$dbpass = "DBPASSWORD"; /* "database password" */
$dbname = "DBNAME"; /* "database name" */
Also, how should the form look for this?
I have this..
<form action="edit.php">
DB Server: <input type="text" name="host" placeholder="localhost"><br>
DB Username: <input type="text" name="dbuser" placeholder="admin"><br>
DB Password: <input type="password" name="dbpassword" placeholder="********"><br>
DB Name: <input type="text" name="db_name" placeholder="pnc"><br>
<button type="submit">Next Step</button>
</form>