Home >Backend Development >PHP Tutorial >submit and onsubmit (transfer)

submit and onsubmit (transfer)

WBOY
WBOYOriginal
2016-07-29 09:15:361515browse

Occurrence sequence: onsubmit -> submit

1. Prevent form submission:

<script><br>function submitFun(){<br>                                       return true;            Allow form submission <br>                                         return false; // Form submission is not allowed<br>}<br></script>

reture
submitFun();">
//Note that value="submit"> cannot be written here


The above introduces submit and onsubmit (transfer), including aspects of content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn