You could find the best option through our support article Collecting Data through Web Forms which has a detailed explanation.
Maybe this post discussed previously should help you solve your query: