Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Is there a command or function that recognizes the ENTER key

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Is there a command or function that recognizes the ENTER key

Postby 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?
User avatar
imroue
New php-forum User
New php-forum User
 
Posts: 62
Joined: Fri Oct 11, 2002 6:53 am

Postby 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
Xerpher
New php-forum User
New php-forum User
 
Posts: 164
Joined: Tue Aug 27, 2002 8:25 pm
Location: Ontario, Canada

Postby 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:
User avatar
imroue
New php-forum User
New php-forum User
 
Posts: 62
Joined: Fri Oct 11, 2002 6:53 am


Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.