I am currently displaying the results from some arduino tests onto a web page.
Is there a way to save this data and change the file name?
Basically want my web page displaying the data and a save as button.
The code I have is running a test cycle, so I would like to save the results to a file on the Ethernet shield memory card and call them 123, 124 etc.
Anyone done this before?
You need to design the web page so that it presents a control that the user can use to request the save. For example you could include a form with a submit button, or just use a hyperlink.
You need to design your web server so that it recognises the HTTP request corresponding to the save request. The most obvious way to do that is to have the submitted URL path specify the save request.
Your sketch needs to determine the file name to save to using whatever algorithm you want. One algorithm would be to generate a name which included a sequence number and just keep incrementing the sequence number until you find a name for which there is no existing file.
You need to write the data to the named file.