First, you lack the value attribute on the inputs. Secondly, in any case, you need some kind of action (even if implicit) to send. In the simplest case, these inputs are part of the form (inside the <form> ), and after submitting (by button or $_REQUEST else) they will become $_GET / $_POST and $_REQUEST in php.
Alternatively, without reloading the page, hang up sending to any event (not necessarily click on the button), which one you need, and then collect the field values from the form using javascript and send it one way or another. For simplicity, you can use jQuery like this:
function submitForm(){ var form = $("селектор формы"), url = form.attr("action"), formData = form.serializeArray(); $.post(url, formData).done(function (data) { console.log(data); }); } $("какой-то селектор").on("какое-то событие", submitForm);
PS: use on instead of bind . And sending input in the text field to the input event without debouncing / throttling can force your interface to lag and create excessive load on the backing. The essence of debouncing / throttling is to make rarer data sending, i.e. not right after each character entered / deleted, but with a pause after the last event ( debouncing ) or just once in a while ( throttling ).