I think that you may be confusing things a bit. A form that is filled in on a web site can be sent via email but it does not have to be. Indeed, many sites will likely have a web based form that does a straight insert into a database. What technology does the
back end of your site use (PHP, Java, etc)? This will dictate how you'll want to implement this.