I've two forms in different divs. One is search form and another is login form.
Here is my problem: When I click search bar, type something and hit enter, form submits.
But when I enter my login information and press enter, nothing happens.
Here is the HTML code:
<div id="xxxx">
    <form action="xxxxx.php" method="get" name="xxxxx">
        <table>
            <tr>
                <td><input type="text" size="xxx" maxlength="xxxx" name="xxxx" id="xxxx"></td>
                <td><input type="button" value="Ara"></td>
            </tr>
        </table>
    </form>
</div>
<div id="xxxxxxx"><form name="xx" action="xxxxxx.php" method="post">
    <table>
        <tr>
            <td>Kullanıcı Adı:</td>
            <td><input type="text" name="xxxx" id="xxx" maxlength="xx" size="xx"></td>
            <td>Şifre:</td>
            <td><input type="password" name="xxxx" id="xxx" maxlength="xx" size="xx"></td>
            <td><input type="button" name="xxxx" id="xxx" value="Oturum Aç"></td>
        </tr>           
    </table>
</form></div>
Don't mind the xxx's
EDIT:
I'm calling a simple JS function to submit so I can't use input type submit.
Here is JS
 function tik()
{
//after a few controls
    document.forms["formName"].submit();
}
Of course formname changes for different forms