I have a date field called simply enough, Date. (I never claimed to be original!) I also have a form that deals with this field. When people enter new information in this form, I want to automatically have the current date entered along with the info the user is entering. (And no, I don't want to use TIMESTAMP!) In MySQL, if I do the following, getting the current date is no problem:
INSERT INTO sit_news SET
News = "Hey, there's new news!",
Date = CURRENT_DATE;
So I figured, if I imbed "CURRENT_DATE" in a hidden form field, then it would insert that along with the rest of the typed in data when the user hits submit. However, it's not working. All the typed data gets submitted just fine, but the date comes up as 0000-00-00. :mad: I used this as my hidden line:
<INPUT TYPE=hidden NAME=Date VALUE=CURRENT_DATE>
Anything wrong with that?