html有哪些方法可以实现表单提交
html有哪些方法可以实现表单提交,下面编程教程网小编给大家详细介绍一下具体实现方法!
方法一:
<form action="" method="" id="forms">
<input type="text" name="name" value="" />
<input type="password" name="pwd" value="" />
<input type="submit" value="提交"/>
</form>
方法二:
<form id='forms' action='' method='' omsubmit='return checkForm()'>
<input type='text' name='name' value=''/>
<input type='password' name='pwd' id='pwd' value =''/>
<button type='submit'>提交<button/>
<form/>
方法三:加密
<form id='forms' action='' method='' omsubmit='return checkForm()'>
<input type='text' name='name' value=''/>
<input type='password' id='input_pwd' value =''/>
<input type='hidden' name='pwd' id='md5_pwd' value=''/>
<button type='submit'>提交<button/>
<form/>
以上是编程学习网小编为您介绍的“html有哪些方法可以实现表单提交”的全面内容,想了解更多关于 前端知识 内容,请继续关注编程基础学习网。