Javascript OnSubmit-不发送所有表单字段-只发送少数表单字段

Javascript OnSubmit-不发送所有表单字段-只发送少数表单字段,javascript,html,forms,Javascript,Html,Forms,我有一个HTML表单和一堆输入字段以及一个提交按钮。 当我单击submit时,我看不到POST参数值上发送的所有字段。我在firebug POST参数列表中只看到部分参数列表 这是我的表格代码: <form id="CalculatorForm" method="post"> <table id="t01" style="float: left; width:750px;"> <tbody> <tr> <th style="height: 9

我有一个HTML表单和一堆输入字段以及一个提交按钮。 当我单击submit时,我看不到POST参数值上发送的所有字段。我在firebug POST参数列表中只看到部分参数列表

这是我的表格代码:

<form id="CalculatorForm" method="post">
<table id="t01" style="float: left; width:750px;">
<tbody>
<tr>
<th style="height: 90px; border-left: 1px solid; border-bottom: 1px solid;">Service</th>
<th class="auto-style-horizontalborders" style="width: 60px;">CPT© Code</th>
<th class="auto-style-horizontalborders">Total RVUs</th>
<th class="auto-style-allborders" style="width: 40px;">Average Number of Encounters (Daily)</th>
</tr>
<tr>
<td></td>
<td id="E22" class="cpt">99254</td>
<td id="F22" class="rvu">4.69</td>
<td><input class="auto-style1 encounternumberdaily" id="G22" type="text"></td>
</tr>
<tr>
<td></td>
<td id="E23" class="cpt">99255</td>
<td id="F23" class="rvu">5.67</td>
<td><input class="auto-style1 encounternumberdaily" id="G23" type="text"></td>
</tr>
<tr>
<td>Critical Care</td>
<td id="E24" class="cpt">99291</td>
<td id="F24" class="rvu">6.26</td>
<td><input class="auto-style1 encounternumberdaily" id="G24" type="text"></td>
</tr>
<tr>
<td></td>
<td id="E25" class="cpt">99292</td>
<td id="F25" class="rvu">3.16</td>
<td><input class="auto-style1 encounternumberdaily" id="G25" type="text"></td>
</tr>
<tr>
<td class="auto-style-boldtext">Staffing with Physicians</td>
<td class="auto-style-boldtext" colspan="2">Your magic number:</td>
<td class="auto-style2 physician-count"><input class="auto-style1 encounternumberdaily" id="G26" type="text"></td>
</tr>
<tr>
<td class="auto-style-boldtext">How many Mid-Levels?</td>
<td colspan="2"></td>
<td class="auto-style3 physician-count"><input class="auto-style1 encounternumberdaily" id="G27" type="text"></td>
</tr>
</tbody>
</table>

<table id="TableContactForm" style="float: left; margin-left:50px; border:none; width:150px;">
    <tbody>
    <tr><td>    <label>First &amp; Last Name</label> </td></tr>
    <tr><td>    <input class="fullname" type="text" name="fullname"> </td></tr>

    <tr><td>    <label>Email Address</label> </td></tr>
    <tr><td>    <input class="email" type="text" name="email"></td></tr>

    <tr><td>    <label>Phone Number</label> </td></tr>
    <tr><td>    <input class="phone" type="text" name="phone"></td></tr>

    <tr><td>    <input type="submit" name="submit" value="Submit" id="submit"></td></tr>    
    </tbody>
</table>
</form>

<script type="text/javascript" src="/wpsite/wp-content/themes/divi/js/EDEfficiencyCalculatorScripts.js"></script>

服务
CPT©代码
总RVU
平均遭遇次数(每天)
99254
4.69
99255
5.67
重症监护
99291
6.26
99292
3.16
配备医生
您的神奇数字:
有多少个半山?
第一及;姓
电子邮件地址
电话号码
字段(G22、G23)中的值未过帐。 但全名、电子邮件和电话中的值作为参数发送,如下所示: fullname=Santosh&email=Test&phone=123&submit=submit

在提交时,我将此表单值发送到javascript,并使用ajax将其发送到PHP服务器脚本

谢谢您的帮助。

这些字段缺少“name”属性。我刚刚将它们添加到您的表单中,它就起作用了。

您需要name=“something”。。。。。。Id不包含整个页面提交