Monday, 15 April 2013

javascript - Using a submit button to submit to the same form and using the values to run SQL queries -



javascript - Using a submit button to submit to the same form and using the values to run SQL queries -

sorry title confusing best way think describe it. issue creating form people set info it. part of validation form compare current values past values database. need process form identification fields in order find user's lastly entry database. way supposed work (in head) is: user fills out data, hits check button (a type=submit button) form runs validations based on previous db entries , enables submit button user click perform final submission. thought or suggestions? right check button submits form can't proper validations because need of form info pull sql queries.

i suggest making check button type=button. way can set onclick event handler phone call function validation via ajax without submitting form server.

javascript html sql forms

No comments:

Post a Comment