2010-11-20 8 views
0

PHPとMySQLを使用しており、ユーザーがテキストフィールドに新しい値を入力してEnterキーを押すとデータベースを更新します。ユーザーがTextBox内でEnterキーを押したときにMySQLデータベースを更新します。

誰でもこのチュートリアル/記事を知っていますか?
http://www.w3schools.com/php/php_mysql_update.asp

そして、これらが相互作用する方法についてのチュートリアルです:

答えて

2

あなたはこれらのPHPでのMySQLデータベースと対話する方法についてのチュートリアルがある

www.w3schools.comに素晴らしいチュートリアルと説明を見つけることができますPHPでのアクティブなWebページに:あなたは2を組み合わせた場合
http://www.w3schools.com/php/php_post.asp

、あなたは)=探しているものを達成することができます

0

あなたはすべてのチュートリアルを入手し、Enterキープレスコードを検出します:

*************************************************************************** 
*Pressing the "ENTER Key" or the "RETURN Key" usually generates 
*two characters: i.e., the "carriage return" character followed by 
*the "line feed" character. Regular expressions will be used to 
*check this character combination to identify whether the "ENTER 
*Key" or the RETURN Key" is pressed or not. 
****************************************************************************/ 


if(this.Text.match(/\r\n/)) 
{ 
    Alert("Enter is not allowed!\nPlease use the command button."); 
    this.Text = this.Text.replace(/\r\n/gi,""); 
// good place to fire off a CommandButton 
} 
関連する問題