我必须结合中间标记+ EAMCET标记=分数
使用该分数值如何从使用mysql php获取Rank。 这是我的代码
获得百分比分数后,根据我想要使用mysql php获取数据的分数
赞赏任何帮助..
<script type="text/javascript">
function addNumbers() { var val1 = parseInt(document.getElementById("value1").value); var val2 = parseInt(document.getElementById("value2").value); var ansD = document.getElementById("rank"); ansD.value = (val1*(25/600)) + (val2*(75/160)); }
</script>
&#13;
<form action="/" method="post">
<table>
<tbody align="center">
<tr>
<th colspan="2">
<h1>EAMCET 2015 Engineering/Medical Rank Estimator</h1>
</th>
</tr>
<tr class="marks" style="font-weight: bold; background: whitesmoke;">
<td colspan="2"></td>
</tr>
<tr class="marks" style="font-weight: bold;">
<td>Enter your Intermediate Group Marks</td>
<td><input id="value1" maxlength="3" name="value1" size="10" type="text" value="" /></td>
</tr>
<tr class="marks" style="font-weight: bold">
<td>Enter your EAMCET Expected Marks</td><td><input type="text" id="value2" name="value2" value="" size="10" maxlength="3" onkeyup="javascript:addNumbers()"/></td>
</tr>
<tr>
<td class="MsecNote" colspan="2"><b>Note:</b>* Intermediate group marks should be less than 600(1st & 2nd Year)
* EAMCET marks should be less than 160. Your combined score will be calculated automatically.</td>
</tr>
<tr>
<td colspan="2"><span class="marks">Your Combined Score (EAMCET WT + INTER WT) is
<input id="rank" name="rank" type="text" />
</span></td>
</tr>
<tr>
<td><input id="eamcet_0" type="radio" name="eamcet" value="Engineering" checked="checked" /><label for="eamcet_0">Engineering</label></td>
<td><input id="eamcet_1" type="radio" name="eamcet" value="Medicine" /><label for="eamcet_1">Medicine</label></td>
</tr>
<tr>
<td colspan="2" valign="top" style="text-align: center">
<input type="submit" name="Button1" value="Submit" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("Button1", "", true, "", "", false, false))" id="Button1" class="Sbutton" />
</td>
</tr>
<tr>
<td colspan="2">
<span id="ranks_out" class="marks"></span>
</td>
</tr>
</tbody>
</table>
</form>
&#13;