I have a form that is submitting to another PHP page using the POST method. It's as follows:
Then on the page this is being submitted to (search.php), I get the POST variable naturally with:
My problem is that when the user types in a search and hits "ENTER" (which most people are accustomed to doing), no search parameter is being submitted with the form. Everything works perfect if the user clicks the SUBMIT button, but not by hitting the ENTER key. Does anyone know what I can do fix this?? Thanks in advance for any help...
Code:
<form runat="server" style="margin:0" action="search.php" method="post">
<input class="inputfield" type="text" name="formTypedSearch" />
<select class="inputfield" name="formSearchCategory">
<option value="all">all</option>
<option value="artists">artists</option>
<option value="albums">albums</option>
</select>
<input class="submitfield" type="submit" name="formSearchSubmit" value="GO!" />
</form>
Then on the page this is being submitted to (search.php), I get the POST variable naturally with:
Code:
$srch = $_POST["formTypedSearch"];
My problem is that when the user types in a search and hits "ENTER" (which most people are accustomed to doing), no search parameter is being submitted with the form. Everything works perfect if the user clicks the SUBMIT button, but not by hitting the ENTER key. Does anyone know what I can do fix this?? Thanks in advance for any help...