我在一个网页上有这个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 the项目中发送另一个页面上“帐户”和“密码”标签中的值?
包含标签的页面不在同一个域中。
发布于 2013-02-03 02:47:39
您可以将绝对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>这对你不起作用吗?
https://stackoverflow.com/questions/14663868
复制相似问题