scheols Posted June 24, 2006 Share Posted June 24, 2006 Well im still working on my Bulletin Board.Now i want to make a form to replace the database name,uname,upassSo say i got:[code]<form action="checksubmit.php"method="post">DataBase Name: <input type="text" name="username"><br>User Name: <input type="text" name="password"><br>DB User Password:<input type="text" name="password2"><br><input type="submit" value="Register" name="submit"><br></form>[/code]how could i make it so that when you click submit the input text changes the text thats in here:[code]$db_connection = mysql_connect("localhost", "username", "password");[/code]and heres database thing[code]@mysql_select_db(databasename) or die( "unable to select database");[/code]like when you click submit everything on the Form u intered Replaces the Database stuff. Quote Link to comment https://forums.phpfreaks.com/topic/12817-text-replace-form-humm-database-install-page/ Share on other sites More sharing options...
Drumminxx Posted June 24, 2006 Share Posted June 24, 2006 $db_connection = mysql_connect("localhost", $_POST["username"],$_POST[ "password"]);@mysql_select_db($_POST['databasename']) or die( "unable to select database");try that Quote Link to comment https://forums.phpfreaks.com/topic/12817-text-replace-form-humm-database-install-page/#findComment-49141 Share on other sites More sharing options...
scheols Posted June 24, 2006 Author Share Posted June 24, 2006 im going to try that thankz Quote Link to comment https://forums.phpfreaks.com/topic/12817-text-replace-form-humm-database-install-page/#findComment-49152 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.