Hidden field not correctly passing value

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
Hi,
Like this
<input type="hidden" name="myTimestamp" value="<%=myTimestamp%>">

Cheers,
Jon
 
Back
Top