A simple form, one text field that submits to $PHP_SELF works fine when the submit key is clicked, but does not work
when the enter key is hit.
I'm using the following form:
<form action="<? $PHP_SELF ?>" method="post">
<input name="name" size="30">
<input type="submit" name="submit" value="submit">
</form>
script is invoked with
if($submit){
then do stuff
}
When the enter key is hit the if statement is not invoked.
If anyone can explain, I'd appreciate it.
Thanks
B