Insert records without submit button use jQuery Ajax in you PHP page. First set a function in your button type button and give a function name.
now call the function name into the script tag and store input text value in a Jquery variable and using ajax pass the text value in another link. use post method for form submit.
Question and answer is powered by AnsPress.io