Submit button

ok, I’m building this website for this group and they want to have a mailing list. I know how to add a text imput for the name and email address. I just want to know how do I get that information when they push the submit button.