dealinvite.asp
Upload User: jinglin
Upload Date: 2021-12-20
Package Size: 545k
Code Size: 2k
Development Platform:

VBScript

  1. <% 
  2.    'web-based info survey system
  3.    'progarmmed for cabletron
  4.    '      by Gary Tang,04 26,2001
  5. %>
  6. <!--#include file=dbconn.asp-->
  7. <%
  8. 'dinfine variable
  9.  dim name,email,company,address,zip,tel,vcontent
  10. 'accept variable value from cilent-side
  11.  name=trim(request.form("name"))
  12.  email=trim(request.form("email"))
  13.  company=trim(request.form("company"))
  14.  address=trim(request.form("address"))
  15.  zip=trim(request.form("zip"))
  16.  tel=trim(request.form("tel"))
  17.  joininvite=trim(request.form("joininvite"))
  18.  
  19. 'replace ' with '' 
  20.  name=replace(name,"'","''")
  21.  email=replace(email,"'","''")
  22.  company=replace(company,"'","''")
  23.  address=replace(address,"'","''")
  24.  zip=replace(zip,"'","''")
  25.  tel=replace(tel,"'","''")
  26.  vcontent="这位先生/小姐有意参加此项活动,其资料如下:"+chr(13)+chr(10)
  27.  vcontent=vcontent+"姓名:"+name+chr(13)+chr(10)
  28.  vcontent=vcontent+"公司:"+company+chr(13)+chr(10)
  29.  vcontent=vcontent+"地址:"+address+chr(13)+chr(10)
  30.  vcontent=vcontent+"邮编:"+zip+chr(13)+chr(10)
  31.  vcontent=vcontent+"电话:"+tel+chr(13)+chr(10)
  32.  vcontent=vcontent+"email:"+email+chr(13)+chr(10)
  33.  vcontent=vcontent+"是否参加(1是0否):"+joininvite+chr(13)+chr(10)
  34. 'creste sql statement and insert into database 
  35.  sql="insert into invitedperson(name,company,address,zip,tel,email,posttime,joininvite)" 
  36.  sql=sql+" values('"&name&"','"&company&"','"&address&"','"&zip&"','"&tel&"','"&email&"',convert(datetime,getdate()),"&joininvite&")"
  37.  'response.write sql
  38.  conn.execute(sql)
  39.  
  40.  Set Mymail = CreateObject("CDONTS.NewMail")
  41.  Mymail.From = "support@hermes.com.cn"
  42.  Mymail.subject = "邀请函回复"
  43.  Mymail.Body=vcontent
  44. '设置优先级,0-不重要,1-一般,2-重要。
  45.  Mymail.Importance = 2
  46.  Mymail.To = "tsj@hermes.com.cn"
  47.  Mymail.Send
  48.  Set Mymail = Nothing
  49.  conn.close
  50.  set conn=nothing
  51. %>
  52. <html>
  53. <head>
  54. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  55. <link rel="stylesheet" type="text/css" href="style.css">
  56. <title>信息调查</title>
  57. <script src="precheck.js"></script>
  58. </head>
  59. <body leftmargin=0 topmargin=3>
  60. <br>
  61. <br>
  62. <br>
  63. <br>
  64. <center>
  65. &nbsp;&nbsp;
  66. <font color="#181873" size=3>非常感谢您的参与,您的信息已经提交成功了</font>
  67. </center>
  68. <br>
  69. <br>
  70. <p align=center><a href="javascript:self.close()"><font color="#181873" size=2>关闭窗口</font></a></p>
  71. </body>
  72. </html>