Javascript 附加url的多个Mysql查询

Javascript 附加url的多个Mysql查询,javascript,php,mysql,mysqli,onclick,Javascript,Php,Mysql,Mysqli,Onclick,我正在编写一个脚本,它将根据多个输入条件(目前只有两个)搜索和显示结果。一个搜索标准是数据库中的哪个表,第二个标准是特定列中美元金额的比较 我想首先选择要从中提取的表,有三种选择;科林,达拉斯,塔兰特。到目前为止,我一直在用单选按钮写作 <input type="radio" id="mychoice" name="Collincountychoice" value="collincounty" >Collin County<br> <input type="rad

我正在编写一个脚本,它将根据多个输入条件(目前只有两个)搜索和显示结果。一个搜索标准是数据库中的哪个表,第二个标准是特定列中美元金额的比较

我想首先选择要从中提取的表,有三种选择;科林,达拉斯,塔兰特。到目前为止,我一直在用单选按钮写作

<input type="radio" id="mychoice" name="Collincountychoice" value="collincounty" >Collin County<br>
<input type="radio" id="mychoice" name="Dallacountychoice" value="dallascounty">Dallas County<br>
<input type="radio" id="mychoice" name="Tarrantcountychoice" value="tarrantcounty">Tarrant County<br> 
然后,我想按美元金额排序,以缩小使用文本框提交该值返回的列数

 <input type="text" name="dollar" id="dollar" value="" />
我需要在以前的结果的基础上,通过一些类似的测试

www.example.com/search.php?data_table=collincounty&dollar=500
我肯定我错过了一些简单的东西,提前谢谢

更新

<form id="form1" name="form1" method="get" action="">
<label>
<input type="radio" id="Collinchoice" name="data_table" 
value="collincounty" >Collin County<br>
<input type="radio" id="Dallaschoice" name="data_table" 
value="dallascounty" >Dallas County<br>
<input type="radio" id="Tarrantchoice" name="data_table" 
value="tarrantcounty">Tarrant County<br> 

科林县
达拉斯县
塔兰特县

美元金额:

你能发布你的
HTML吗?听起来你的收音机和文本输入有两种不同的形式。另一方面,你应该考虑调整你的标签。看起来这纯粹是一个HTML问题,与包含的其他标记无关。您的
标记是否在
标记中?查看HTML的整个上下文会很有帮助。是否使用jQuery?因为我可以想出一种使用它的方法,我们需要查看您的Javascript。此外,不能有多个元素具有相同的ID。您当前正在使用
mychoice
作为所有单选按钮的ID。但是,您应该给他们所有相同的
名称
@jordan我只是不熟悉jquery
www.example.com/search.php?data_table=collincounty&dollar=500
<form id="form1" name="form1" method="get" action="">
<label>
<input type="radio" id="Collinchoice" name="data_table" 
value="collincounty" >Collin County<br>
<input type="radio" id="Dallaschoice" name="data_table" 
value="dallascounty" >Dallas County<br>
<input type="radio" id="Tarrantchoice" name="data_table" 
value="tarrantcounty">Tarrant County<br> 
<label>Dollar Amount:</label>
<input type="text" name="dollar" id="dollar" value="<?php echo 
stripcslashes($_REQUEST["dollar"]); ?>" />



<input type="submit" name="button" id="button" value="Filter" />
</form>