I would like to do this, but I can't. I tried almost everything. Can I ask how can I update the username in the sql database?
I want if I write something to the username's place then I click to the button (and if it success the string will be just one 'world') so far I could do it. My problem is when success, I want to the cnc.php update the data to the sql server) I hope you can understand what I mean/want.
<form name="form1" method="post" action="inc/processings/cnc.php">
<p id="be">Change username</p>
<input name="username" placeholder="Your new name" type="text" id="cn">
<input type="button" id="change" onclick="return renformhash (this.form, this.form.username);" value="Change">
</form>