Forum Moderators: open
What you should do is just to pass the form to the server and catch the request there with some cgi (perl, php or whatever you're familiar with).
If you want to sql without reloading the page, then you have to use AJAX, but still you need some scripts at the server side.