Jquery php insert data into mysql without form?

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 html> Add User.

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 Add User 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.

If you don't want to use a and a submit button which would be the absolutely correct way to do this, you will need to use javascript and AJAX: Subscribe for the onclick event of the anchor Send an AJAX request to the server passing the value of the name entered in the textbox Cancel the default action of the link Add User and the insert function could be defined in a separate javascript file: function insert() { var name = document. GetElementById('name'). Value; // TODO: send an AJAX request to the server return false; }.

You can do an Ajax call with JQuery that will send the name to the server. In your PHP code you will be able to create the Insert Query in your user table.

You can use JavaScript for that. Take a look at jQuery ajax: api.jquery.com/jQuery.ajax/ note: next time try googling, or at least provide what you have tried.

I googled but I didn't find the solution. – Francesc Clopes Oct 3 at 19:37.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions