Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8752395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:13:38+00:00 2026-06-13T13:13:38+00:00

It can be JavaScript, Ajax or PHP. A need a real code parts or

  • 0

It can be JavaScript, Ajax or PHP. A need a real code parts or good guide. Is there any link?

Purpose of this: I am planning a keyboard game which is running with characters which are pressed by user. If user press the button a, I have to sent send this data to MySQL database. Is this possible? If yes, with which code?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T13:13:39+00:00Added an answer on June 13, 2026 at 1:13 pm

    If your using jQuery framework you can use keypress event (if you’re not using jQuery you can still use a keypress events but jQuery makes it easier!)

    From the docs:

    $("#target").keypress(function(event) {
      if ( event.which == 13 ) {
         event.preventDefault();
      }
    }
    

    e.which will give you access to the keycode the user pressed. With this you can easily respond to specific key presses. 13 is a javascript keyboard code for ‘enter’ So perhaps you want to save all input to a variable that user types on the keyboard and when enter is typed you can send that data using ajax. jQuery makes this very simple.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We need to create a script (ajax or php or javascript) that will clean
I need a way to use JavaScript to include/execute PHP (with ajax of course)
how i can add this variables to the code above? i need to pass
I am diving into the web application testing line(php ,ajax,javascript) and need some guidance.
Given an instantiated JavaScript object/class can I make an Ajax call from that class
I created a Ajax enabled WCF service. I can consume the service from javascript
This is a question in response to thise: Javascript AJAX function not working in
I need help with this, I can't see where is the problem. When I
I had a little bit of experience in JavaScript + AJAX in PHP, but
I am still new at PHP/Javascript/Ajax and am having a very hard time (been

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.