Hi Friends
I have a problem, problem is that I have a textbox in html form in PHP, I want when we write some text in this textbox then press enter key then value of textbox will be insert in the sql table ? Please help me anyone urgently ?
Thanks..
Loading

Vineet Kumar SainiPosted Apr 19, 2012, 5:36 AM
SenthilkumarPosted Apr 19, 2012, 5:15 AM
The logic is you have two pages. One is page1 with textbox.
when enter some text and hit on enter key will call ajax function.
It uses the asynchrnous call to another page called AjaxPage.php, where it will get the ajax request and get the value.
In AjaxPage.php,
Some thing like that, you need to get the value in the query string and write the logic to insert into database table. now you need to write "Success" as output. This will be taken as response after inserting and message will be displayed in the page1.
Vineet Kumar SainiPosted Apr 19, 2012, 5:08 AM
SenthilkumarPosted Apr 19, 2012, 4:31 AM
you need to like this.
when enter some thing in text box and hit enter will call the ajax function to insert the value.