This is about processing the sent page, the first part is to get the sender's IP address and MAC address, and prohibit users to change their own IP address code, because our system is the need for personal modification of IP behavior to
ASP Cookies
Cookies are often used to identify users.Example
Dim numvisitsResponse.Cookies ("NumVisits"). expires=date+365Numvisits=request.cookies ("NumVisits")
If numvisits= "" ThenResponse.Cookies ("NumVisits") =1Response.Write ("welcome!
ASP several database connection way ' If you use the Foreign home page space, use the following statement: '' Rem codepage= ' 936 'Sqlkai=0Dim Sqldatabasename,sqlpassword,sqlusername,sqllocalnameSqllocalname= "(local)"Sqlusername= "Nntoa"Sqlpassword=
---
" site template | WEB"I=0sqlmb= "SELECT * from WEBMB ORDER BY id DESC"Call OpendbRs.Open sqlmb,conn,1,1If not rs.eof thenPage=cint (Request.QueryString ("page"))If Page=0 ThenPage=1End IfRs.pagesize=15If not isnumeric (page) or
' Procedure name: ShowPage' Function: Show "previous page next page" and other information' parameter: sfilename----link Address' Total number of totalnumber----' Maxperpage----number per page' Showtotal----Show total quantity'
How to establish a connection with the database through ASP is a very realistic problem, I try to write very detailed. I believe you have been able to write similar simpler and more practical programs by reading this article.
(i) Selection of
The purge method clears any buffered HTML output.Note: This method does not explicitly respond to the title, only the body reacts.Note: If response. The buffer is false, and this method will result in a run-time error.Grammar
Response. Clear
function SendMail (mailserveraddress,addrecipient,subject,body,sender,mailfrom)
On Error Resume Next
Dim JMail
Set jmail=server.createobject ("Jmail.smtpmail")
If Err Then
Sendmail= " not installed JMail components "
Err.Clear
Exit function
End
'=====================================================================' Software name: New Cloud Website Management system' Current version: Newcloud Site Management System version 2.1' File name: admin_password.asp' Update Date: 2004-12-20'
Site administrator can be based on the user's activities in the site and the legality of management, if the implementation is unbearable can delete the user, here is not to say is delete users can delete files, and so on, this is just a simple file
Today came up with the idea of using ASP to get all the table names in the database, the field names of all the tables, and the contents of all the fields in the database only if you know the names of the databases. After a period of time to query
A simple ASP Getting Started tutorialDim strname,stremail,strhomepage,strcontent,strtable,strdsnStrname=request.form ("name")Stremail=request.form ("email")Strhomepage=request.form ("homepage")Strcontent=request.form
asp Site Search Source Please enter the key word: multiple keywords separated by "space" or "comma"! If Request.Form ("Submit") <> "thenDim database,conn,connstrdatabase= "Example.mdb" database nameSet Conn=server.createobject ("Adodb.connection") '
ASP tutorial filtering HTML-sensitive characters into HTML-encoded functions' This function is based on the user's incoming parameters and then traversing the HTML-sensitive characters into HTML-encoded form, which filters sensitive HTML.
Various database connection codesI have nothing to do today. I have summarized the connections to various databases and share them with you:MS Access database connectionUse DSN to connect without the user name and password:Set conn = Server.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service