Back to the picture, how do you get him to empty it?
prepare("insert into user(username,password,email) values (:username,:password,:email)");$stmt->execute($_POST);?>
Reply content:
Back to the picture, how do you get him to empty it?
prepare("insert into user(username,password,email) values (:username,:password,:email)");$stmt->execute($_POST);?>
Browser problem, I used to use Firefox seems to have this problem.
Add in Form
JS Code add
$ ("Input[type=reset]"). Trigger ("click"); Methods provided by jquery
Or iterate through the elements inside the form to clear the contents.
I have a link here you can refer to the next http://www.cnblogs.com/shanlin/archive/2014/07/17/3850417.html
Now the browser generally has the behavior of automatically save the user name and password, you can use JS to set the user name and password to empty:
var Oipt1=document.getelementbyid (' ipt1 ');
var Oipt2=document.getelementbyid (' Ipt2 ');
Oipt1.value = ";
Oipt2.value = ";
Use Ajax to submit a login, as long as there is no fallback