Form input storing as permanent variable
Posted 06 May 2006 - 01:28 PM
An installation file: the first page is where the user would input their MySQL Host, Username, Password and Database. Then I want the page to save this information to a config.php file, which can then be included on all the pages that need to correspond with the database using this information. Then on the second installation page, the tables would be inserted to the database, ect.
Just the only thing i'm not sure how to do is the permanent variable storing, how would I go about this?
Posted 06 May 2006 - 01:47 PM
<form action="form.php" method="post"> <p><input type="text" name="host" /> <p><input type="text" name="user" /> <p><input type="text" name="password" /> <p><input type="submit" value="hit it!" /> </form> <?php $host = $_POST['host']; $user = $_POST['user']; $password = $_POST['password']; ?>
Posted 06 May 2006 - 01:51 PM
Posted 07 May 2006 - 09:05 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users