return false prevents form submission. This problem has troubled me for a long time today. I found a lot of information on the Internet. Basically, there are the following points to note about onsubmit=return false:
1. The return value of return The problem is, once there is a return value in the function return, the following statement will not be executed, but will jump directly to the place where the function is called. In the following PHP function code, if the first if condition is met, the function value returns Boolean false. You can return the value of a function and jump out of the function; as long as the return statement is encountered, the program will stop executing on that line of code, and the execution control will immediately Return to the code that called the program.