If you haven't done so already, put the input fields inside a "form" tag (<form>). You can clear the form's fields using a "reset" input type. To store the data, you need to learn how to program in PHP or ASP. This is a big task, but there is plenty of helpful info available at
PHP Tutorial. Good luck!