Invalid parameter in form commit action
The page has two forms when it wants the server to submit data through the form, one is post and the other is get. One difference between the two is that get will append the data directly to the URL, and the
Form. submit () cannot submit form Cause Analysis, form onsubmit
Directly Add the following code:
Copy codeThe Code is as follows: Member registration enter the following content carefully Username: Password: Confirm password: m01.gif Verification
Cause of the error that form. submit () cannot be submitted: form. submit form
Source: http://www.ido321.com/948.html
Directly Add the following code:
1:
2: Member registration
3:
4:
5:
6: enter the
when making a JSP submission page, the data was inexplicably submitted 2 times, the database data was inserted 2 times, and began to focus only on submitting to the servlet, doing a lot of testing, tossing half a day, Just test it out:
Do not set the button id to submit. Otherwise, confusion may occur. As a result, the submit () method of the form cannot submit the form and directly Add the following code:
Member registrationThe form data is submitted to this page. below is
We should control the Submit button when the form is submitted, and cannot click repeatedly to submit the data. Otherwise there will be redundant duplication of data in the system, causing the system to appear data garbage. jquery is simple enough
Yesterday, when making a form to submit content asynchronously, encountered a very strange problem, submit () method can not be submitted, each submission is the current to refresh, network grab bag found, each time is get way to obtain the current
Public static void Login () {
String url = "Http://www.***.com/login";
Postmethod Postmethod = new Postmethod (URL);
//Fill in the values of each form field
namevaluepair[] data = {
New Namevaluepair ("account", "[email protected]"),
in the development of the page, sometimes to reuse the form of data, and asynchronous requests submitted to other links, this time can use jquery to modify the form's action value (remember to change back after use), and call the Submit method, Of
Pre-used JS form to prevent duplicate submission method
The code is as follows
Copy Code
The following three methods are called separately
so if I make a form directly, and then submit it to/test, the above
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.