In the >head> of your HTML:
Within the <form> tag:
<form action="pagetopostto.php" name="myForm" method="post" onsubmit="return addDate();">
And within the form elements:
<input type="hidden" name="myDate">
How does this work? From the bottom up…
- There's an empty variable called DateSubscribed in the form.
- That takes today's date and sets the value of DateSubscribed to it. The function returns True to the form, letting it know that it can be submitted.