Is there a command or function that recognizes the ENTER key

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
User avatar
imroue
New php-forum User
New php-forum User
Posts: 62
Joined: Fri Oct 11, 2002 6:53 am

Is there a command or function that recognizes the ENTER key

Post by imroue » Tue Oct 15, 2002 5:45 pm

I am looking for a function or command that would recognize the enterkey..
something like the OnClick or on MouseOver.
Basiclly.. when someone is on my page and they press the ENTER key..i need it to call a specific script that i wrote.

Any ideas?

Xerpher
New php-forum User
New php-forum User
Posts: 164
Joined: Tue Aug 27, 2002 8:25 pm
Location: Ontario, Canada
Contact:

Post by Xerpher » Tue Oct 15, 2002 5:56 pm

Hmmm, well... I'm afraid your going to have to use Javascript for that. But don't have javascript is easy.

You need Javascript because it runs on the clients end, but PHP only runs on the servers end... This post explains that: http://www.php-forum.com/p/viewtopic.php?t=370

User avatar
imroue
New php-forum User
New php-forum User
Posts: 62
Joined: Fri Oct 11, 2002 6:53 am

Post by imroue » Tue Oct 15, 2002 5:59 pm

Xerpher wrote:Hmmm, well... I'm afraid your going to have to use Javascript for that. But don't have javascript is easy.

You need Javascript because it runs on the clients end, but PHP only runs on the servers end... This post explains that: http://www.php-forum.com/p/viewtopic.php?t=370


Oh DUH!!.. of course... stupid question.. thanks for waking me up!
:oops: :oops:

Post Reply

Who is online

Users browsing this forum: MSNbot Media and 8 guests