Hey guys,

I was wondering and have been baffled for about 6 hours now as to how i save form data with either Javascript or PHP?

For example, i have a html page with about 15 different questions in a form. The form contains 3 buttons, reset which defaults the page questions, clear which removes all answers and download(which does nothing at the moment).

Basically i wanted to set it up so that after i fill out the questions and i click on download it processes the questions into a list and gives me a popup to save the file as test.txt. Problem is im not too sure how to do this?

I can save a file as .txt with php easily enough but how do i get the form data? do you use echo and save it with php or do you use some sort of javascript?