Hi,
I am building a guestbook type app using a HTML form with Javascript validation etc and posting the output to an active server page which writes it to a text file ( using file system objects - heaven help me).
This is working, however, I want a seperate text file for each new day. The text files are created thru the CreateTextFile method and I have run out of ideas how to pass the method a filename based on todays date.
One way I thought of was to send the date to ASP in a hidden form field. The problem is I have no idea how to populate this field with today's date.
The following code just does not work.
<input type="hidden" ...value="now()">
Any help would be greatly appreiated.
I am building a guestbook type app using a HTML form with Javascript validation etc and posting the output to an active server page which writes it to a text file ( using file system objects - heaven help me).
This is working, however, I want a seperate text file for each new day. The text files are created thru the CreateTextFile method and I have run out of ideas how to pass the method a filename based on todays date.
One way I thought of was to send the date to ASP in a hidden form field. The problem is I have no idea how to populate this field with today's date.
The following code just does not work.
<input type="hidden" ...value="now()">
Any help would be greatly appreiated.