Jump to content


Photo

Text Replace Form. humm Database Install Page


  • Please log in to reply
2 replies to this topic

#1 scheols

scheols
  • Members
  • PipPipPip
  • Advanced Member
  • 113 posts

Posted 24 June 2006 - 06:04 PM

Well im still working on my Bulletin Board.

Now i want to make a form to replace the database name,uname,upass

So say i got:



<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>

how could i make it so that when you click submit the input text changes the text thats in here:
$db_connection = mysql_connect("localhost", "username", "password");

and heres database thing
@mysql_select_db(databasename) or die( "unable to select database");

like when you click submit everything on the Form u intered Replaces the Database stuff.
Dont Piss me Off today

#2 Drumminxx

Drumminxx
  • Members
  • PipPipPip
  • Advanced Member
  • 92 posts
  • LocationUSA

Posted 24 June 2006 - 06:17 PM

$db_connection = mysql_connect("localhost", $_POST["username"],$_POST[ "password"]);

@mysql_select_db($_POST['databasename']) or die( "unable to select database");


try that
:: gucci.com ::
:: blockbuster.com ::

--------------------

#3 scheols

scheols
  • Members
  • PipPipPip
  • Advanced Member
  • 113 posts

Posted 24 June 2006 - 07:22 PM

im going to try that thankz
Dont Piss me Off today




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users