<form name="login"action="index.php" method="post" id="login">
<div class="loginform">
<div class="form-label"><label for="username"><?php print_string("username") ?></label></div>
<div class="form-input">
<input type="text" name="username" id="username" size="15" value="<?php p($frm->username, true) ?>" />
</div>
<div class="clearer"><!-- --></div>
<div class="form-label"><label for="password"><?php print_string("password") ?></label></div>
<div class="form-input">
<input type="password" name="password" id="password" size="15" value="" />
<input name="loginxdw" type="submit" id="loginxdw" value="登陆" />
<input type="hidden" name="testcookies" value="1" />
</div>
<div class="clearer"><!-- --></div>
</div>
</form>
</div>由于参数已经通过别的途径传到这个页上了 只希望到达这个页的时候能够自动点击下登陆花了好长时间了,求解救
<div class="loginform">
<div class="form-label"><label for="username"><?php print_string("username") ?></label></div>
<div class="form-input">
<input type="text" name="username" id="username" size="15" value="<?php p($frm->username, true) ?>" />
</div>
<div class="clearer"><!-- --></div>
<div class="form-label"><label for="password"><?php print_string("password") ?></label></div>
<div class="form-input">
<input type="password" name="password" id="password" size="15" value="" />
<input name="loginxdw" type="submit" id="loginxdw" value="登陆" />
<input type="hidden" name="testcookies" value="1" />
</div>
<div class="clearer"><!-- --></div>
</div>
</form>
</div>由于参数已经通过别的途径传到这个页上了 只希望到达这个页的时候能够自动点击下登陆花了好长时间了,求解救
document.getElementById("loginxdw").click();
}
<body onload="document.login.submit();">
</body>
{
document.document.forms["login"].submit();
}