0

Webページにこのhtmlコードがあります:

<form action="" type=post>
      <label for="name"><div><br>Account</br></div></label> <input type=text id="name" name="account" size=20 maxlength=32 /><br>
       <label for="name"><div><br>Password</br></div></label> <input type=password id="name" name="password" size=20 maxlength=14 /><br> 
      <button type=submit>Okay</button>
    </form>

「アカウント」および「パスワード」ラベルの他のページのasp.net webproject値から送信するにはどうすればよいですか?

ラベルを含むページが同じドメインにありません。

4

1 に答える 1

0

次のように、絶対 URL をaction属性に入れることができます。

<form action="https://othersite.com/login.aspx" type=post>
  <label for="name"><div><br>Account</br></div></label> <input type=text id="name" name="account" size=20 maxlength=32 /><br>
   <label for="name"><div><br>Password</br></div></label> <input type=password id="name" name="password" size=20 maxlength=14 /><br> 
  <button type=submit>Okay</button>
</form>

これはうまくいきませんか?

于 2013-02-02T18:47:38.960 に答える