<%@ language=javascript %>
<!--#include file = "include/setglobals.asp"-->
<!--#include file = "include/dbpath.asp"-->
<%
// output relevant meta tags
init( "subscription" );
// output common top of page
header( <a href="work.asp">work</a> --> subscription, 3 );
// output page content
content ( );
// output common bottom of page
footer( );
%>
<% /* standard page elements */ %>
<!--#include file = "utils/init.asp"-->
<!--#include file = "utils/database.asp"-->
<!--#include file = "utils/header.asp"-->
<!--#include file = "utils/footer.asp"-->
<%
// ============================================
// the content of this page
// ============================================
function content ( )
{
out ( <td width="20%"> </td> );
out ( <td width="60%"> );
// if the form has an email address, validate it first
// so that if it fails we can show the form to fix
var semail = "";
var bsubmitted = (request.form.count > 0);
// has the form been submitted?
if ( bsubmitted )
{
// get the email address from the form...
semail = "" + request.form ( "email" );
// validate the email address and moan if it fails
if ( !isvalidemail ( semail ) )
{
out ( <h5><font color="red">" + semail + " <i>appears</i> to be an invalid email address - please try again!</font></h5> );
out ( <p><font color="red">if you disagree, please <a href="contact.asp">contact me</a> directly.</font><p> );
// pretend the form hasn been sent yet
bsubmitted = false;
}
}
// show the form if not submitted yet
if ( !bsubmitted )
{
out ( if you e interested in hearing whenever a new article is posted, or an existing one is updated, type in your email address below and hit <b>subscribe!</b> );
您可能感兴趣的文章:
- ASP执行Cmd命令程序,并显示读取返回回显
- asp.net(c#)捕捉搜索引擎蜘蛛和机器人
- AFNetworking框架_上传文件或图片到服务器
- C# 前段传模型和集合,后台直接用Model和List<Model> 接收
- NET 泛型,详细介绍
- 【基于C#的ASP.NET】错误篇1——用户系统+管理员系统---CS1061: “ASP.manage_aspx”不包含“SqlDataSource1_Selecting”的定义
- RabbitMQ单机集群搭建出现Error: unable to perform an operation on node 'rabbit1@ClusterNode1'
如您对本文有疑问或者有任何想说的,请 点击进行留言回复,万千网友为您解惑!
网友评论