Hello,
I'm trying to get an html textbox assigned to a php variable so I can put this on my panel.
Can you please revise and edit this code?
<?php
$con = mysql_connect("localhost","root","password");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("PenguinWorld", $con);
mysql_query("UPDATE pw_users SET Nickname='nick'
WHERE Username='username'");
mysql_close($con);
?>
<html>
<form name="input" action="changed.php" method="get">
Username:<INPUT TYPE = "Text" VALUE ="username" NAME = "username"><br>
New Nick: <INPUT TYPE = "Text" VALUE ="nick" NAME = "nick"><br>
<input type="submit" value="Submit" />
</form>