<?php
$con = mysql_connect("localhost","root","") or die
("unable to connect mysql");
 mysql_select_db("e_com",$con);
  $sql = "INSERT INTO addscript(user_name)
  VALUES('$_POST[n]')";
if(!mysql_querry($sql,$con))
 {
  die('Error: ' . mysql_error());
  }
echo "Thanks for added";
mysql_close($con)

?>

<form method="post" enctype="multipart/form-data">
username <input type="text" name="n">
<input type="submit" name="btn" value="save">

</form>