onclick="login.action='mobile_login.jsp';login.submit();return true;"

解决方案 »

  1.   

    <form name="login" method="POST">
      <input type="text" name="username" >
      <input type="password" name="password">
      <input type="image" src="images/mobile.gif" alt="移动用户登录" width="65" height="17" border="0" onclick="login.action='a.jsp';login.submit();">
      <input type="image" src="images/unicom.gif" alt="联通用户登录" width="65" height="17" border="0" onclick="login.action='b.jsp';login.submit();">
    </form>
      

  2.   

    <form name="login" method="POST">
      <input type="text" name="username" >
      <input type="password" name="password">
      <input type="image" src="images/mobile.gif" alt="移动用户登录" width="65" height="17" border="0" onclick="with(login){action='mobile_login1.jsp';submit();">
      <input type="image" src="images/unicom.gif" alt="联通用户登录" width="65" height="17" border="0" onclick="with(login){action='mobile_login2.jsp';submit();">
    </form>