Click to See Complete Forum and Search --> : pass date/time in hidden field?
etard
09-24-2003, 11:39 PM
I am interested in capturing the users (mail server would be ideal as the user may have wrong settings) date/time (at least date) when they fill out a form and send it to me. I want it captured in a hidden field. Any ideas? Ths way, I can track when it was 'actually' sent versus when I receve it and get it stamped via my mail program.
Charles
09-25-2003, 05:51 AM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Content-Script-Type" content="text/javascript">
<title>Example</title>
<form action="" onsubmit="this.date.value = new Date()">
<div>
<input type="hidden" name="date">
<button type="submit">Submit</button>
</div>
</form>