SyntaxFix
Write A Post
Hire A Developer
Questions
if you need to do something before submitting data, you could use form's onsubmit.
<form method=post onsubmit="return doSomething()"> <input type=text name=text1> <input type=submit> </form>