ÇóÖú£¡ASP´úÂëÎÊÌâ - Web ¿ª·¢ / ASP
<!--#include file=conn.asp-->
<body bgcolor="LightYellow">
<p>
<%if request("add2")="Ìí¼Ó" then
name=trim(request("name"))
pwd=trim(request("pwd"))
tel=trim(request("tel"))
if name="" then
response.write"<script>alert('Óû§Õ˺Ų»ÄÜΪ¿Õ£¡');history.back();</script>"
elseif pwd="" then
response.write"<script>alert('ÃÜÂë²»ÄÜΪ¿Õ£¡');history.back();</script>"
elseif tel="" then
response.write"<script>alert('µç»°ºÅÂë²»ÄÜΪ¿Õ£¡');history.back();</script>"
else
rs.open"select*from admin where name='"&name&"'",conn,1,3
if not rs.eof then
response.write"<script>alert('Óû§Õ˺ÅÒѾ´æÔÚ£¡');history.back();</script>"
else
rs.addnew
rs("name")=name
rs("pwd")=pwd
rs("tel")=tel
rs("type")="1"
rs.update
response.write"<script>alert('ÐÂÓû§×¢²á³É¹¦£¡');</script>"
response.Redirect "login.asp"
end if
rs.close
end if
end if%>
</p>
<form method="post" action="">
<table width="260" height="
Ïà¹ØÎÊ´ð£º
aspÐéÄâÖ÷»úʵÏÖα¾²Ì¬µÄ·½·¨£º
1¡¢ ÖØÐ´url²ÎÊý
Step1: ½¨Á¢Ç°Ì¨Îļþindex.asp£¬ÐÞ¸Äurl²ÎÊýÐÎʽ¡£ÓÉÓÚ¶ÁÈ¡Êý¾Ý¿âÖеļǼ²»ÊÇרÌâµÄÖØµã£¬¹ÊÖ±½Ó¸ø³ö:
<!--#include file="config.asp" -->
&l ......
asp.netÅúÁ¿ÉÏ´«Í¼Æ¬×îºÃÓÐÔ´Â룬ÔÚÏߵȣ¡£¡£¡£¡£¡£¡£¡
Ô´ÂëºÜ³¤µÄ¡£
²Î¿¼
C# code:
HttpFileCollection files = HttpContext.Current.Request.Files;
if (files.Count <= 1)
{
......
ÏÖÓÐÒ»¸ö±í¸ñ£¬ÓкܶàÐÐÊý×é¡£
ÏëÒªÒ»¸ö½Å±¾£¬¶ÁÈ¡ËùÓÐÐеÄÊý×éºóÊä³ö¡£
Êä³öǰ²»ÏÔʾÕý³£Ë³ÐòµÄ±í¸ñÊý×飬¶øÖ±½ÓÏÔʾ³ö¶ÁÈ¡ºóµÄÊý×é¡£
Â¥Ö÷µÄ±í´ïʵÔÚ³ÉÎÊÌ⣡£¡
ÊDz»ÊÇÕâ¸öÒâ˼£¿
<%
Dim ArrDNA£¨10£¬10£ ......
ÎÒ×î½ü×öÁËÒ»¸öÍøÕ¾ÊǹØÓÚ²úƷչʾµÄ ~ Õû¸öÍøÕ¾Í¼Æ¬¶¼Õ¼ÓÃÁËÒ»´ó°ë
ÕâÑùµÄ»°·ÃÎÊËٶȾͷdz£Âý ÓÐʲô°ì·¨¿ÉÒÔ½â¾öÂð£¿
Âé·³´ó¼Ò¶à¶à¸øµãÒâ¼û £¡ ÓÐʲô¾¡¹Ü˵
3Q´ó¼Ò
htmlÒ³Ãæ.
Õâ¸ö,¼ÈÈ»Ö÷Ò ......
ÀàËÆÌÔ±¦Ò³ÃæÉϵÄ
http://www.taobao.com/
×îºÃÓÐÔ´Âë »òÕß˵µÄÏêϸµã лл ~
ʲô½Ð¶¯Ì¬¹ã¸æ£¿
²»Ã÷°×
µ¯³öÒ»¸ö¿ò£¿
ÀûÓÃJsÎļþ°É£¬°Ñ¹ã¸æÉú³Éjs
aspx:
<%@ Page Language="C#" AutoEventWi ......