I've create a very simple search feature on my site using the following code:
<form name="search" action="search_result.php" method="post">
<TABLE>
<tr>
<td>Search for a Prop:</td>
<td><input class="textblock" type=text name="keyword" size=20></td>
<td><input type="submit" class="btn" name="submit" value= "go"></td>
</tr>
</table>
</form>
if($submit == "go")
{
$sql = "SELECT * FROM Prop WHERE PropName LIKE '%$keyword%' Or PropName LIKE '$keyword%' Or PropName LIKE '%$keyword'";
$query = mysql_query($sql, $Link);
if ($result = mysql_fetch_array($query))
{display results.. blah blah blah...}
This search works perfectly fine if users click the submit button entilted go. However if the user hits enter, nothing is displayed.
Has anyone ever come accross this?
Thanks in advance to anyone who can help.