Difference between <input type='button' /> and <input
type='submit' /> in HTML
- Button: button will not submit a form - they don't do anything by default. They're generally used in conjunction with JavaScript as part of an AJAX application.
- Submit: buttons will submit the form they are in when the user clicks on it.
It is very important when you programming with JavaScript and PHP.
ReplyDelete