html有哪些方法可以实现表单提交

2025年01月31日 建站教程

html​有哪些方法可以实现表单提交,下面web建站小编给大家详细介绍一下具体实现方法!

方法一:

<form action="" method="" id="forms">
  <input type="text" name="name" value="" />
  <input type="password" name="pwd" value="" />
  <input type="submit" value="提交"/>
</form>

方法二:

<form id='form​s' 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='form​s​' 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/>

本文链接:http://so.lmcjl.com/news/22391/

展开阅读全文
相关内容