Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending Date as a Form field value

Status
Not open for further replies.

shaunk

Programmer
Aug 20, 2001
402
AU
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.
 
Just make the form as an ASP file, and use an ASP tag for the date...
kinda like this:
<input type="hidden" ...value="<%=Date %>">

ComputerCop911
ASP/HTML Programmer, Knowledgeable Computer Geek ;-)
 
Glad I could help!

ComputerCop911
ASP/HTML Programmer, Knowledgeable Computer Hardware/Software Geek ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top