我有三個不同的下拉菜單形式,它看起來像這樣:形成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