Forum Moderators: open
document.write(dateline[Style]);
</SCRIPT>
I would like to be able to pull the information (the date) and have it listed on my Form that I send to my email, so that I know what date the email was sent. Is there a way to call it?
Example:(in the form)
document.write(dateline[Style]);
(name="todaysdate")
and return:
#Form.todaysdate#
Thank you
HTML-FORM
Order Date:
(script runs and shows today's date)
<SCRIPT language="JavaScript">
..............
..............
document.write(dateline[Style])
</SCRIPT>
Due Date:<input name="duedate" >
HTML Shows the following
Order Date: Tue November, 8, 2005
Due Date: <customer fills out input>
On Submit - this sends me a email with "Due Date: #Form.duedate#"
I am trying to find a way to also pull the Date over to my email so I will have records of the date the form was filled out.
HTML-FORM
Order Date:
(script runs and shows today's date)
<SCRIPT language="JavaScript">
..............
..............
document.write(dateline[Style]);
document.write("<input type='hidden' name='todaysdate' value='" + dateline[Style] + "'>");
</SCRIPT>
Due Date:<input name="duedate" >
That will put the value into a hidden field. If the page that processes the form simply iterates through all of the form input and sends it to you in email, then it will include this hidden value. However, if your form processing page references each item by name, then you'll need to modify that page to look for "todaysdate".
Hope that helps.