echo'<script language="javascript"> function Enter(event, formElem) { if(event.keyCode == 13) formElem.submit(); } </script>'; onkeypress="Enter(event, this)