- Joined
- Dec 18, 2007
- Messages
- 933
- Reaction score
- 12
Hello, heres a query..
I want this form (mysql) to connect to database (done) then on user side, have like a box which fills in
Username - Your choice
Password - Your choice
Level - 80
Race - Human
Faction - Alliance
What it is - paladin (etc)
Items: (this box should be sent to an email with the items they had)
and on click, it will enter into the database and the user will just need me to add items to them...
So far:
Help! thanks 
Just realised, i need them to make an account on http://173.224.211.52/ then how do i make it post that user into there account?
---------- Post added at 10:44 AM ---------- Previous post was at 09:54 AM ----------
Sorry for double: Wuold it be like:
P.s any wow private owners, check if this will work... thanks!
I want this form (mysql) to connect to database (done) then on user side, have like a box which fills in
Username - Your choice
Password - Your choice
Level - 80
Race - Human
Faction - Alliance
What it is - paladin (etc)
Items: (this box should be sent to an email with the items they had)
and on click, it will enter into the database and the user will just need me to add items to them...
So far:
PHP:
<?php
$con = mysql_connect("localhost","root","password");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("characters", $con);
mysql_query("INSERT INTO Characters (User, Password, Level, Race, Faction, Whtis)
('$_POST[User]','$_POST[Password]','$_POST[Race]','$_POST[Faction]','$_POST[Whtis]','$_POST[Level]')";
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
echo "Your User has been added to the database!";
mysql_close($con);
?>
Just realised, i need them to make an account on http://173.224.211.52/ then how do i make it post that user into there account?
---------- Post added at 10:44 AM ---------- Previous post was at 09:54 AM ----------
Sorry for double: Wuold it be like:
PHP:
<html>
<body>
<h1>All Players from Project EDEN, form to transfer character</h1>
<form action="old80s.php" method="post">
Username: <input type="text" name="user" />
Password: <input type="text" name="password" />
Previous Level: <input type="number" name="level" />
Faction: <input type="text" name="Faction" />
Race: <input type="text" name="Race" />
What you where (pally etc):<input type="text" name="whtis" />
<input type="submit" />
</form>
</body>
</html>
Last edited:

