Html Weebly按钮坏了

Html Weebly按钮坏了,html,forms,button,weebly,Html,Forms,Button,Weebly,我正在尝试让登录按钮工作,按下任何一个字段中的enter键发布表单,按钮出现,但什么也不做。这是代码,有什么想法吗? 提前多谢 <div><form id="login" action="" method="POST"> <div id="login-form-parent" class="wsite-form-container" style="margin-top: 0px;margin-right: 0px; margin"> <h2 class=

我正在尝试让登录按钮工作,按下任何一个字段中的enter键发布表单,按钮出现,但什么也不做。这是代码,有什么想法吗? 提前多谢

<div><form id="login" action="" method="POST">
<div id="login-form-parent" class="wsite-form-container" style="margin-top: 0px;margin-right: 0px; margin">
<h2 class="wsite-content-title" style="text-align: center;">
<span style="font-size: large;">Please enter your credentials</span></h2>
<div>
<div style= "text-align: center";>
<label class="wsite-form-label" for="name">Username</label>
<div>
<input id="input-616817079299148233" class="wsite-form-input wsite-input wsite-input-width-370px" name="username" type="text" />
</div>
</div>
</div>
<div style="margin-top: 15px;margin-bottom: 15px;"></div>
<div>
<div style="text-align: center";>
<label class="wsite-form-label" for="password">Password</label>
<div>
<input id="input-984837360768012607" class="wsite-form-input wsite-input wsite-input-width-370px" name="pwd" type="password" />
</div>
</div>
</div>
</div>
<div style="display: none; visibility: hidden;"><input name="wsite_subject" type="text" />
</div>
<div style="text-align: center; margin-top: 10px; margin-bottom: 0px;">
<input name="form_version" type="hidden" value="2" />
<input id="wsite-approved" name="wsite_approved" type="hidden" value="approved" /> 
<input name="ucfid" type="hidden" value="login" />
<input style="position: absolute; top: 0; left: -9999px; width: 1px; height: 1px;" type="submit" />
<a class="wsite-button">
<span class="wsite-button-inner">Submit</span></a></div>
</form></div>

请输入您的凭据
用户名
密码
提交

没有与表单链接的操作。。填写action=“”链接到您的php登录页面。

您需要使用jQuery from.wsite按钮内部的一些处理程序来触发您的
。因为你把你的输入按钮隐藏在屏幕外。当使用java脚本处理它时,最好的做法是添加JavaScript验证(代码中未显示)

Ie:
document.getElementById(“登录”).submit()

函数submitform()
{
document.login.submit();
}

请输入您的凭据
用户名
密码

这难道不会阻止登录脚本工作吗?我现在可以不用这个按钮登录。怎么可能呢,你用的是一个没有附加任何php代码的表单来登录。php脚本捕获了表单的详细信息,按钮上有什么想法吗?