Discuss the below:
Q: Modify the form page so that when the JavaScript function has verified that all of the required fields have been filled, a cookie is added to the user's computer as if this were a real app. but its not. If the same user attempts to fill out the form a second time, the user will be directed to a separate HTML page advising them that they have already submitted the form. Alert window stating "you already submitted this form". the two files I submitted work together when the required fields are completed. I think I'm close with the files I submitted. Functions for cookie may not be in right section of code, head vs body form name and value are off also.