yes i aleady search on google but i dident find anything.
i will try to explain the question better.
Inputbox1: Username.
Inputbox2: Passw.
Inputbox3: MYSQL name.
Inputbox4: New table name.
Button1: Send.
ive tried this but it doenst function well:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form method="POST" action="doit.php">
<!--The hidden fields are provided to maintain state. They are used to pass the username and password from script to script.-->
<input type="hidden" name="server" value="<? print $_POST['server']?>">
<input type="hidden" name="gebruiker" value="<? print $_POST['gebruiker']?>">
<input type="hidden" name="wachtwoord" value="<? print $_POST['wachtwoord']?>">
<?php
$server=$_POST['server'];
$gebruiker=$_POST['gebruiker'];
$wachtwoord=$_POST['wachtwoord'];
$link = mysql_pconnect(server, gebruiker, wachtwoord)
or exit("Kan geen verbinding maken: " . mysql_error());
if (mysql_create_db("my_db")) {
print ("Database succesvol gemaakt\n");
} else {
printf ("Error bij het maken van database: %s\n", mysql_error());
}
?>
<?
print "Enter Server Name: <input type=text name=server size=20><br>\n";
print "Enter Username: <input type=text name=gebruiker size=10><br>\n";
print "Enter Password: <input type=text name=wachtwoord size=10><br>\n";
print "<br>\n";
print "<input type=submit value=Submit><input type=reset>\n";
?>
</form>
</td></tr></table>
</body>
</html>
doit.php:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<?php
$server=$_POST['server'];
$gebruiker=$_POST['gebruiker'];
$wachtwoord=$_POST['wachtwoord'];
$link = mysql_pconnect(server, gebruiker, wachtwoord)
or exit("Kan geen verbinding maken: " . mysql_error());
if (mysql_create_db("my_db")) {
print ("Database succesvol gemaakt\n");
} else {
printf ("Error bij het maken van database: %s\n", mysql_error());
}
?>
<body>
</body>
</html>