Ideally you'll want to use a server side form submission script, instead of relying on JavaScript, as the later is unreliable, and very limited in what can be submitted. Check out some of the scripts listed here: http://cgi.resourceindex.com/Programs_and_Scripts/Perl/Form_Processing/