我想这样做,但我做不到。我尝试了几乎所有东西我可以问我如何更新sql数据库中的用户名?从表格更新php
我想如果我写一些东西到用户名的地方,然后我点击按钮(如果它成功的字符串将只是一个'世界')到目前为止,我可以做到这一点。我的问题是成功时,我想将cnc.php更新数据到sql server)我希望你能理解我的意思/想要的。
<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>
你的jQuery和PHP代码在哪里? – aldrin27