网站代码解析

来源:百度知道 编辑:UC知道 时间:2024/06/30 02:48:38
<!--#include file="top.asp"-->
<!-- #include file="MD5.asp" -->
<div align="center"><img border="0" src="Img/comp.GIF" height="10">
<%user_name=DelStr(request("user_name"))
question=DelStr(request("question"))
answer=DelStr(request("answer"))
pass1=DelStr(md5(request("pass1")))
pass2=DelStr(md5(request("pass2")))
if request("action")="repass1" then%>
<table border="0" cellpadding="0" cellspacing="5" width="980" bgcolor="#EEEEEE"><tr><td align="center" bgcolor="#EEEEEE">
<table border="0" cellpadding="0" cellspacing="0" width="100%" background="img/pattern.gif" style="border: 1px solid #C0C0C0">
<%
if user_name="

<!--#include file="top.asp"-->
服务器端,叫SSI -- Server Side Includes, 即服务器端嵌入文件,意思是在文件中这个位置嵌入top.asp文件

<!-- #include file="MD5.asp" -->
从本页面直接调用外部的Md5.asp这个asp,目的是实现MD5的加密,好处是可以实现代码重涌,如果下次还想实现代码加密,就可以直接使用<!--#include file="Md5.asp" --> 来实现

<div align="center"><img border="0" src="Img/comp.GIF" height="10">
表格边框为0.插入GIF图片.表格的列高为10

<%user_name=DelStr(request("user_name"))
取出user_name的值