我如何单独处理此表格 [英] How can i process this form alone

查看:77
本文介绍了我如何单独处理此表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在html表单上具有此功能,表单脚本中有此

I have this function on an html form, the form script there is this

    <script type="text/javascript">
           var conf = {
           isVip:false,
           isMem:false
        };
    </script>

这是按钮,按钮是在html中处理两种形式的按钮,这是按钮.

and here is the the button, the button is to process two form in the html, here is the button.

 <li class="current">
  <a href="#" onclick="submitAction('process.php')">免费邮箱登录</a>
   </li>
   <li>
 <a href="#" onclick="submitAction('process.php')"><span class="vip"></span>VIPSubmit</a>
  </li>
 <a href="#" class="loginBtn"  

这是表格

       <form name="vip_login" method="post" action="process.php">
        <input tabindex="1" id="vipname" type="text" class="username" name="username" value=""/><span class="vipDomain">@name.com</span>
       <input  tabindex="2"  id="vippassword" type="password" class="password" name="password" value=""/>

我的问题是,如何使btn单独处理我的表单并将数据发送到外部process.php函数.

My question is, how do i make the btn to process my form alone and send data to external process.php function.

推荐答案

<a href="#" class="loginBtn" onclick="document.forms['vip_login'].submit();"></a>

这篇关于我如何单独处理此表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆