Hello I have the next code into my website:
<input type="text" id="name" name="name" width="25px"/>
<a href="#" id="newUser">Add User</a>
I need that when I click “newUser” the value of the name is saved into my mysql database without refreshing the page.
Any exemple of how to do this?
This can be done on the client side with jquery’s ajax libraries to create the refreshless submit.
Here’s an example of some html and javascript
On the php side just code like you would if you were submitting a form via post.
I haven’t had time to try it, but I hope it works 🙂
Like the others have suggested, look on the jquery site for more info.