Drupal 7 具有window.open功能的roundcubelogin

Drupal 7 具有window.open功能的roundcubelogin,drupal-7,roundcube,Drupal 7,Roundcube,我已经通过以下脚本完成了对roundcube的自动登录 <form name="webmail" action="http://localhost/roundcube_mail/" method="post"> <div class="info" style="color:#f00;display:none"></div> <input name="_action" id="_action"value="login" type="hid

我已经通过以下脚本完成了对roundcube的自动登录

<form name="webmail" action="http://localhost/roundcube_mail/" method="post">
    <div class="info" style="color:#f00;display:none"></div>

    <input name="_action" id="_action"value="login" type="hidden" />
    <input name="_timezone" id="_timezone" value="_default_" type="hidden" />
        <input name="ajax" id="ajax" value="1" type="hidden" />

    User <input name="_user" id="_user" type="text"  value="anupam@excoflare.com"/><br>
    Pass <input name="_pass" id="_pass"type="password"  value="anupam123"/><br>

    <input type="submit" >

</form>

用户
通过

它可以正常工作。但是我想通过java脚本和window.open方法自动登录电子邮件,用于我的p

问题是您希望执行POST请求而不是GET请求。这可能会帮助您: