added form and getting data

added the form using a variable to store the page details and I am
collecting the data from the user inputs