sort out the algorithm to capture the form submitted data
javascript validation form submitted forms