אני בונה איזה אתר ויש לי בעיה שהחיפוש לא פועל לי אני רוצה שמה שרשום בתיבת טקסט אז שאני לוחץ על חיפוש זה יחפש מה שרשום שמה מישהו יכול לעזור לי?
הנה הסקריפט:
<table wight="310px" height="30px" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="110px" class="RMenu">
<select id="section" size="1" dir="rtl" lang="he">
<option value="0">
קטגוריה
</option>
END;
$sql = mysql_query("select * from category where main_category_id in (select id from category where main_category_id=0) order by title");
while( $row = mysql_fetch_assoc($sql) )
{
echo "<option value='{$row}'>{$row}</option>";
}
echo <<<END
</select>
</td>
<td width="130px" class="RMenu">
<div align="center">
<input id="search_string" type="text" style="width: 130px; margin-left: 4px; margin-right: 4px;" onkeypress="if(window.event.keycode==13){alert('using ie');}else if(event.which == 13){alert('using ff');}" />
</div>
</td>
<td width="20px" class="RMenu">
<div align="center">
<img src="images/key.gif" id="search_img" style="cursor:pointer" onClick="window.location.href='index.php?do=browse§ion='+document.getElementById('section').value+'&search_string='+document.getElementById('search_string').value" />
</div>
</td>
</tr>
</table>
</div>