Hidden field not correctly passing value

D

Dave Lagergren

I have a website with a database that tracks the locations of equipment under
repair. I need to have every entry time and date stamped because the
equipment may move several times a day.

I am using the following code on the submission form for time:

<%Dim myTimestamp%>
<%myTimestamp=Now()%>
<p><font face="Arial"><b>Timestamp </b>
<%=myTimestamp%>

<input type="hidden" name="myTimestamp" value=myTimestamp>

When you are entering the data the date/time shows up fine on the screen
(<%=myTimestamp%>). However the value is saved as "myTimestamp" not as the
actual date.

I am using the DBW to create/manage the database.
 
J

Jon Spivey

Hi,
Like this
<input type="hidden" name="myTimestamp" value="<%=myTimestamp%>">

Cheers,
Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top