Ok after some testing I have discovered that this is an issue specific to Internet Explorer only. IE doesn't set the value of the submit button when the enter key is pressed, but Mozilla/Firefox does for example. The easiest way to get around it in your situation (with only one submit button on the page) is by making the following changes...
1-A) CHANGE THIS:
<input type="text" name="keyss" value="<?php if (isset($submit)) {echo $keyss ;} ?>"><br />
TO THIS:
<input type="text" name="keyss" value="<?php if (!empty($_POST)) {echo $keyss ;} ?>"><br />
1-B) CHANGE THIS:
TO THIS:
If you were using multiple submit buttons (each with different functions), then hidden input fields would need to be used and checked for in PHP. This method can also be used for you, but it's messier and not necessary.
Ahh, if only all browsers behaved the same way...life would be so simple []
http://www.mameworld.info/loonybar/images/graemlins/wink2.gif[/]