|
Posted by Daniel Klein on 11/08/75 12:00
On Tue, 15 Jan 2008 20:07:29 +0100, "Richard" <root@localhost> wrote:
>
>"Daniel Klein" <danielk@featherbrain.net> wrote in message
>news:ts0qo3p6i33dh14e9aoookeldba13g1g3h@4ax.com...
>> I'm pretty new at php and web stuff so please be gentle with me.
>>
>> I'm trying to get a form to submit when the user presses the Enter
>> key. I do not want to use javascript. I've googled this to death and
>> cant find the answer (only hints), except on the 'Experts Exhange'
>> page and you have to pay to get the answer :-(
>>
>> Why is this such a secret in the open source world we live in?
>>
>> Daniel Klein
>
>Hi,
>If you have a form with a submit button, then ENTER will submit the
>form as far as I know.
>Not sure about all OS-en or browsers BTW.
Here is a extremely simplified example:
<html>
<body>
<h1>Test Page</h1>
<form action=test.php method="get">
<input type="submit" value="Submit">
</form>
</body>
</html>
So there is one 'submit' button. It appears that the button has to be
in focus in order for the user to be able to submit the form with the
Enter key. What am I missing? Is this even possible?
[ And let's not start another thread on Get vs Post :-) ]
Daniel Klein
Navigation:
[Reply to this message]
|