Oh my god. Can't believe it but I've managed to pass the input from the form into the text file. Next up need to figure out how to add a new line after the input and to also stop overwriting the previous content