最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

如何驗(yàn)證日期輸入是否正確?

 更新時(shí)間:2006年11月16日 00:00:00   作者:  

<%
Option Explicit
Dim strDate           

' 記錄輸入的日期,字符型.
Dim datDate           

' 測(cè)試輸入的日期是否正確,日期型.

<html>
%>
<head>
<title>
千花飛舞之日期驗(yàn)證</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../Css/export.css" type="text/css">
</head>

<body text="#000000">

<Form name="InputDate" ACTION="<% = Request.ServerVariables("script_NAME") %>" METHOD="POST">
<table width="500" border="1" cellpadding="0" cellspacing="0" align="center">
  <tr>
    <td background="../Pic/br.jpg">
      <table width="500" border="0" cellpadding="4" cellspacing="4" class="9p">
        <tr>
          <td colspan="2">&nbsp;</td>
        </tr>
        <tr>
          <td colspan="2" height="60">
            <div align="center">
請(qǐng)輸入所要查詢(xún)的日期:
              <input type="text" name="strDate" value="<% = Cstr(Year(Now())) & "-" & Cstr(Month(Now()))
& "-" & Cstr(Day(Now()))%>" size="10" maxlength="10">
            </div>
          </td>
        </tr>
        <tr>
          <td width="50%">
            <div align="center">
              <input type="submit" name="Submit" value="
確認(rèn)">
            </div>
          </td>
          <td>
            <div align="center">
              <input type="reset" name="Submit2" value="
取消">
            </div>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</Form>
<%
strDate = Request.Form("strDate")
If strDate <> "" Then
    On Error Resume Next
    datDate = CDate(strDate)
    If Err.Number = 0 Then
%>
<Script Language="javascript">
<!--
    InputDate.action="TypeAlert.asp"
    InputDate.submit()
//-->
</Script>
<%
    Else
%>
<Script Language="javascript">
<!--
    alert ("
,您輸入的日期錯(cuò)啦,請(qǐng)重新輸入!")
//-->
</Script>
<%
    End If
End If
%>
</body></html>

 

[1]

相關(guān)文章

最新評(píng)論

炉霍县| 永靖县| 壤塘县| 宣城市| 太谷县| 荣成市| 乡城县| 南漳县| 彭山县| 拜城县| 通海县| 绍兴县| 宜春市| 万年县| 武邑县| 塔河县| 文登市| 顺义区| 稻城县| 兰考县| 和硕县| 鱼台县| 齐河县| 介休市| 昭觉县| 靖宇县| 鹿邑县| 荆门市| 延长县| 万全县| 高清| 原阳县| 黔江区| 平谷区| 诏安县| 纳雍县| 福清市| 会同县| 安陆市| 孙吴县| 平泉县|