I have a form containing several lists of lists and a text box, as well as a button ...
When I click the button, the ajax function is called ... ajax then calls the php function, which gets the results from mysql db ...
The problem is that I cannot do the same, just by pressing Enter on the form, the page just refreshes ...
This is explained, I think the form is submitted, but ignores the ajax function when hit enter, EVEN, although I have "onSubmit =" AjaxFunction (); "in the form tag ...
Any ideas?
Does anyone know a way to ignore form submission at login? and maybe instead press the button at the entrance?
Thanks...
html ajax php mysql forms
user188962
source share