Action is the script that will process the form is located, and method is either GET or POST. Get is sent via the URL, POST is not.
Now, Javascript can process the script as you use it, or before you submit it. If you want compatibility and any security whatsoever, you'll want a scripting language or CGI like PHP, Perl, Python etc to handle the form.