I just revisited this question from 7 years ago because someone had very fairly downvoted because even I don't remember what I was asking originally; but I'll try to turn this into a real question.
It looks like what I was asking was that if I visited a particular link, for example,
mydomain.com/sheet.csv?z=abcdefg
,
then what it does is save the part of the query string, abcdefg
, into a csv file.
Then if I manually visit another URL such as:
mydomain.com/sheet.csv?z=hijklmn
,
then it appends hijklmn
to the next line of the csv file.
If that's what I was asking originally, since 7 years ago I have an idea about how to do this. Essentially I think I would just save it to a file in the same way as a text file, just named as a csv.
Then with each visit of a new link with a new query string on it, it would just get the URL that it came from using javascript, get the query string from the URL (possibly anything after the ?
or perhaps there's a query string function in javascript), and then just create a new line on the text file named as a .csv file and then append that new query string into a new row in the file.
Do you think this would work, or would you suggest a different method?