How to collect data using the form?