我有三个不同的下拉菜单形式,它看起来像这样:形成3个下拉菜单
<FORM METHOD="LINK" ACTION="/search.php" method="get">
<select style="width:55px;" name="filter_name">
<option> </option>
<option>R13</option>
<option>R14</option>
<option>R15</option>
<option>R16</option>
<option>R17</option>
</select></td></tr>
<tr><td width="40%">Plotis:</td><td colspan="2"><select style="width:55px;" name="">
<option> </option>
<option>165</option>
<option>175</option>
<option>185</option>
<option>195</option>
<option>205</option>
<option>215</option>
<option>225</option>
</select></td></tr>
<tr><td width="40%">Aukštis:</td><td colspan="2"><select style="width:55px;" name="">
<option> </option>
<option>75</option>
<option>70</option>
<option>65</option>
<option>60</option>
<option>55</option>
<option>50</option>
<option>45</option>
</select></td></tr>
<tr><td colspan="2" align="center">
<INPUT style="width:80px; height:25px; font-size:14px; font-weight:600; cursor:pointer;" TYPE="Submit" VALUE="Ieškoti">
</FORM>
基本上,我需要在所有3个选项发送到下一个页面,但连接成一个变量.. 例如:如果我选择
<option>165</option>+<option>70</option>+<option>R13</option>
它应该被发送到index.php这样的:filter_name=165/70/R13
而且,如何发送这一切并非仅仅的index.php,但到
index.php?route=product/search&FILTER_NAME
更改ACTION="/index.php"
到ACTION="/index.php?route=product/search"
不能正常工作。
任何帮助将非常感激。
你就不能使目标页面接受不同的表单字段,并建立在你的PHP代码中的'filter_name'? – millimoose
已经尝试过,:( – DadaB
旁白:数值Unicode在HTML转义是可憎的,你应该考虑在PHP搞清楚的字符集设置/服务器 – millimoose