ASP问题,谢谢各位!

来源:百度知道 编辑:UC知道 时间:2024/05/23 18:01:17
我想在同一个文件里设置表单,然后提交之后也在本文件里查询数据库进行判断该怎么写?
比如,在zhece.asp中接值后,提交触发表单的action="zheche.asp"
但是这样写不行,应该怎么写,请高手指教!
上面写错了一点,两个文件都是zhuce.asp

例子:把form和验证代码分别放在if 的then里面和else后面
if {参数判断}then{验证代码}else{form}end if
这样通过参数的有无将一个文件当两个文件用
'new_dl.asp
<!--#include file="conn.asp"-->
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<title>登陆</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<body>
<table width="778" border="0" cellspacing="0" cellpadding="0" background="images/top-back.gif" align="center">
<tr>
<td height="74" align="center" width="190"><img src="images/logo.gif" width="78" height="74"></td>
<td align="center" height="74"><font color="#E3E9F1" size="6" face="华文行楷&q