Click to See Complete Forum and Search --> : web survey date/time stamp


sakatac
04-19-2005, 09:54 PM
I'm hoping someone can help out with this problem. I'm not that skilled at web programming.
I have a web survey that I created, which publishes the results to a text file on my web server. Each survey entry creates a new line in the text file. What I would like to do is have each entry that is submitted time & date stamped in the text file.

ray326
04-19-2005, 11:47 PM
Congrats, you've just reinvented bnbForm. :D Except bnbForm already does the row time stamp you're looking for.

NogDog
04-20-2005, 01:50 AM
It's hard to answer your question in detail without knowing what server-side programming language you're using. Anyway, it should be pretty straight-forward, just add a date field to each entry in the text file, delimited by your character of choice (comma, |, or whatever). Then when you read each line in, you use split() or explode() or whatever function breaks strings up on a selected character for your language of choice.