<input type="text" user" id="nick" />
<input type="text" user" id="message" />
<a href="#">Send</a>
Lets keep it simple. I have two input boxes and a send link. I want to send the nick and message to shoutbox.php, where i will insert these values in database and want to get all the results from the database and show it on the front end.
Now i have implemented the saving in database part but i cant get back the values from database to front end.
I am desperately in need of an jquery function in which i can just send the parameters and it will do all the job for me. I hope you guys might have such a function for yourselves.
Use the jQuery Ajax method to send data to the
shoutbox.php:Now in your
shoutbox.php:If you run this code, then your js alert will show the
echoline fromshoutbox.php.Hope this helps!
More info about jQuery ajax: info