Go directly to the code:
The result is that the test for a long time did not see the message, think that the code is wrong or wrong way to write, carefully check, in the results of the official document, confirm that there is no error.
Formid.submit () cannot submit, temporarily had to change the type of btnsubmit to submit
This.type= "Submit"
The information was found on the internet, due to two points:
1, the form cannot have name= "submit" the label
2, the form can not be lack of "enctype=" Multipart/form-data "
After testing, this two point is absurd, and did not solve my problem (perhaps my problem environment is not the same)
Later, thought the forum friend suggested that I change the registration button ID name, do not submit. After correction, the form is submitted normally, prompting for information to appear.
Finally, the ID of the button is not set to submit, or it may cause confusion, resulting in the form's submit () method not submitting the form. When naming IDs, it is best not to repeat names with existing APIs to avoid unnecessary annoyance.