Hello, I am having a weird problem with forms.
I am using the following form on my page:
<form action="<?=$_SERVER['PHP_SELF'];?>" method="get" name="f">
<input type="hidden" name="guesses" value="<?=$guesses;?>">
<input type="text" name="guess" value="<?=$hint;?>" maxlength="5">
<input type="submit" name="submit" value="Guess">
</form>
If I am in the text field and press the enter button the submit button is not being activated because it only appends ?guesses=0&guess=xxxxx
But if I click on the submit button it further appends &submit=Guess to the above address.
Does anyone know why this is happening and more importantly how to overcome this problem.
Thanks.