asp+access做的网页,想让表单提交数据时,默认提交当前日期now,格式为13-0819,请问该怎么做呢,代码如
<formid="form1"name="form1"method="POST"action="<%=MM_editAction%>"><p>日期<labelfor="y...
<form id="form1" name="form1" method="POST" action="<%=MM_editAction%>">
<p>日期
<label for="ytskgxrq"></label>
<input name="ytskgxrq" type="text" id="ytskgxrq" value="<%=(now)%>" />
</p>
<p>
<input type="submit" name="ytskgxrq2" id="ytskgxrq2" value="确认" />
<br />
</p>
<input type="hidden" name="MM_update" value="form1" />
<input type="hidden" name="MM_recordId" value="<%= Recordset1.Fields.Item("ytsktb_id").Value %>" />
</form> 展开
<p>日期
<label for="ytskgxrq"></label>
<input name="ytskgxrq" type="text" id="ytskgxrq" value="<%=(now)%>" />
</p>
<p>
<input type="submit" name="ytskgxrq2" id="ytskgxrq2" value="确认" />
<br />
</p>
<input type="hidden" name="MM_update" value="form1" />
<input type="hidden" name="MM_recordId" value="<%= Recordset1.Fields.Item("ytsktb_id").Value %>" />
</form> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询