Use ASP to generate HTML files

Source: Internet
Author: User
Tags reset
Use ASP to generate HTML files
Use ASP to generate HTML files
'Has two sides index.htm is the home page. The program is relatively simple, mainly using files in ASP to operate objects.
<! --Index.htm ---------------------->
<Html>
<Head>
<Title> Untitled Document </title>
<Meta http-equiv = "Content-Type" content = "text/html;
Charset = gb2312 ">
</Head>
<Body>
<Table width = "770" border = "0" align = "center" cellpadding = "0" cellspacing = "0">
<Tr>
<Td> <form name = "form1" method = "post" action = "send. asp">
<Table width = "100%" border = "0" cellpadding = "0" cellspacing = "0" bgcolor = "# CCFFFF">
<Tr>
<Td height = "20"> <div align = "center"> Send messages </div> </td>
</Tr>
<Tr>
<Td> <div align = "center">
<Textarea name = "msg" cols = "100" rows = "6"> </textarea>
</Div> </td>
</Tr>
<Tr>
<Td> <div align = "center">
<Input type = "submit" name = "Submit" value = "Submit">
<Input type = "reset" name = "Submit2" value = "Reset">
</Div> </td>
</Tr>
</Table>
</Form> </td>
</Tr>
</Table>
</Body>
</Html>
'// Send. asp
<%
Function chan_time (shijian) 'converts a DATETIME function.
S_year = year (shijian)
If len (s_year) = 2 then s_year = "20" & s_year
S_month = month (shijian)
If s_month <10 then s_month = "0" & s_month
S_day = day (shijian)
If s_day <10 then s_day = "0" & s_day
S_hour = hour (shijian)
If s_hour <10 then s_hour = "0" & s_hour
S_minute = minute (shijian)
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.