0

在我的 ASP 程序中,我使用input文本字段来输入我的日期 (yyyy,mm,dd),对于我之前的输入字段,我可以成功输入数据。

字段格式:(a_year、a_month、a_day)插入到 SQL

但是现在,当我更改为

name=" & a & "_Year
name=" & a & "_Month
name=" & a & "_Day

那么我现在无法插入我的 SQL,但我需要这种格式来使用我的 JavaScript 日历。

有人知道如何使它正确吗?

输入表单的代码:

response.Write "<td align=left ><input type=text name=" & a & "_Year maxLength=4 size=4 value='' >Year</td>" 
response.Write "<td align=left ><input type=text name=" & a & "_Month maxLength=2 size=2 value='' >Month</td>" 
response.Write "<td align=left ><input type=text name=" & a & "_Day maxLength=2 size=2 value='' >Day</td>

我的 SQL 插入:

Dim mDate 

" mDate = request.form("a_Year") & "/" & request.form("a_Month") & "/" & request.form("a_Day") "
4

0 回答 0