o_ali Posted September 28, 2005 Posted September 28, 2005 WEB ADDRESS - WWW.TYREBARGAINS.COM hello guy i really need your help, i want to add fields through the advance search.php file. at the moment onloy 'keywords' fields is searched, I have 4 fields in total, but when i search only 1 is used to search and give results, the field with'keywords' in the coding. I dont know how to add more check out www.tyrebargains.com at the top there is width, diameter etc.. i need those to search through the advance search facility. I havent got a clue how i can go about doing it but i have an idea of what needs to be done. heres the code i have made in index.php for my fields: <td align="center" class="boxText"><form name="quick_find" action="http://www.ta-hq.com/tyres/advanced_search_result.php" method="get"> <div align="center"><strong> Width</strong> - <select name="keywords"> <option>105</option> <option>115</option> <option>125</option> <option>135</option> <option>145</option> <option>155</option> <option>160</option> <option>165</option> <option>170</option> <option>175</option> <option>180</option> <option>185</option> <option>190</option> <option>195</option> <option>200</option> <option>205</option> <option>210</option> <option>215</option> <option>220</option> <option>225</option> <option>230</option> <option>235</option> <option>240</option> <option>245</option> <option>255</option> <option>265</option> <option>275</option> <option>280</option> <option>285</option> <option>295</option> <option>305</option> <option>309</option> <option>315</option> <option>335</option> <option>345</option> <option>750</option> </select> <strong>Ratio </strong>- <select name="keywords"> <option>25</option> <option>30</option> <option>35</option> <option>40</option> <option>45</option> <option>50</option> <option>55</option> <option>60</option> <option>65</option> <option>70</option> <option>75</option> <option>80</option> <option>85</option> </select> <strong>Diameter </strong>- <select name="keywords"> <option>10</option> <option>12</option> <option>13</option> <option>14</option> <option>15</option> <option>16</option> <option>17</option> <option>18</option> <option>19</option> <option>20</option> <option>21</option> <option>22</option> <option>315</option> <option>340</option> <option>365</option> <option>390</option> <option>415</option> </select> <strong>Rating </strong>- <select name="keywords"> <option>F</option> <option>H</option> <option>M</option> <option>N</option> <option>Q</option> <option>R</option> <option>S</option> <option>T</option> <option>V</option> <option>W</option> <option>Y</option> <option>Z</option> </select> <input name="image" type="image" title=" Quick Find " src="includes/languages/english/images/buttons/button_quick_find.gif" alt="Quick Find" border="0"> <br> Please select the dimensions of the tyre you want.<br> <a href="http://www.ta-hq.com/tyres/advanced_search.php"><b>Advanced Search</b></a></div> If you notice i have set them all with keywords, that didnt work it only searchs the last field RATING. Please help me im stuck, and stressed, im sure it can be done, please let me know regards omar
spencermjax Posted April 26, 2006 Posted April 26, 2006 I found this code that may help. I have tried to implement it with no luck. Maybe you can get it to work. javascript code
boxtel Posted April 27, 2006 Posted April 27, 2006 WEB ADDRESS - WWW.TYREBARGAINS.COM hello guy i really need your help, i want to add fields through the advance search.php file. at the moment onloy 'keywords' fields is searched, I have 4 fields in total, but when i search only 1 is used to search and give results, the field with'keywords' in the coding. I dont know how to add more check out www.tyrebargains.com at the top there is width, diameter etc.. i need those to search through the advance search facility. I havent got a clue how i can go about doing it but i have an idea of what needs to be done. heres the code i have made in index.php for my fields: <td align="center" class="boxText"><form name="quick_find" action="http://www.ta-hq.com/tyres/advanced_search_result.php" method="get"> <div align="center"><strong> Width</strong> - <select name="keywords"> <option>105</option> <option>115</option> <option>125</option> <option>135</option> <option>145</option> <option>155</option> <option>160</option> <option>165</option> <option>170</option> <option>175</option> <option>180</option> <option>185</option> <option>190</option> <option>195</option> <option>200</option> <option>205</option> <option>210</option> <option>215</option> <option>220</option> <option>225</option> <option>230</option> <option>235</option> <option>240</option> <option>245</option> <option>255</option> <option>265</option> <option>275</option> <option>280</option> <option>285</option> <option>295</option> <option>305</option> <option>309</option> <option>315</option> <option>335</option> <option>345</option> <option>750</option> </select> <strong>Ratio </strong>- <select name="keywords"> <option>25</option> <option>30</option> <option>35</option> <option>40</option> <option>45</option> <option>50</option> <option>55</option> <option>60</option> <option>65</option> <option>70</option> <option>75</option> <option>80</option> <option>85</option> </select> <strong>Diameter </strong>- <select name="keywords"> <option>10</option> <option>12</option> <option>13</option> <option>14</option> <option>15</option> <option>16</option> <option>17</option> <option>18</option> <option>19</option> <option>20</option> <option>21</option> <option>22</option> <option>315</option> <option>340</option> <option>365</option> <option>390</option> <option>415</option> </select> <strong>Rating </strong>- <select name="keywords"> <option>F</option> <option>H</option> <option>M</option> <option>N</option> <option>Q</option> <option>R</option> <option>S</option> <option>T</option> <option>V</option> <option>W</option> <option>Y</option> <option>Z</option> </select> <input name="image" type="image" title=" Quick Find " src="includes/languages/english/images/buttons/button_quick_find.gif" alt="Quick Find" border="0"> <br> Please select the dimensions of the tyre you want.<br> <a href="http://www.ta-hq.com/tyres/advanced_search.php"><b>Advanced Search</b></a></div> If you notice i have set them all with keywords, that didnt work it only searchs the last field RATING. Please help me im stuck, and stressed, im sure it can be done, please let me know regards omar first you name your fields unique like width, ratio, diameter otherwise they overwrite eachother in the get array. then you have to pick those fields up in advanced_search_results.php and extend the query construction so that it also searches for those fields and values. Treasurer MFC
spencermjax Posted April 27, 2006 Posted April 27, 2006 then you have to pick those fields up in advanced_search_results.php and extend the query construction so that it also searches for those fields and values. Any idea on how to pick up those fields and extend the query?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.