% 'Option Explicit %> <% function a2zVerifyCheck(sVerificationCode,a2zVerifyWebmasterId) set a2zVerifyCheckHttp=server.CreateObject("Microsoft.XMLHTTP") dim sUrl sUrl="http://www.humanverify.com/a2zVerify/a2zCheck.asp?u=" & a2zVerifyWebmasterId & "&id=" & sVerificationCode a2zVerifyCheckHttp.open "GET", sUrl, false a2zVerifyCheckHttp.send a2zVerifyCheck=a2zVerifyCheckHttp.responsetext set a2zVerifyCheckHttp=nothing end function %> <% '**************************************************************************************** '** '**************************************************************************************** 'Buffer the response Response.Buffer = True 'Dimension variables Dim strName 'Holds the Users name Dim strEmailAddress 'Holds the Users e-mail address Dim strCountry 'Holds the users country Dim strHomepage 'Holds the Users homepage Dim strComments 'Holds the Users comments Dim dtmEntryDate 'Holds the date the commnets where made Dim intRecordPositionPageNum 'Holds the record position Dim intRecordLoopCounter 'Loop counter for displaying the guestbook records Dim intTotalNumGuestbookEntries 'Holds the total number of records in the database Dim intTotalNumGuestbookPages 'Holds the total number of pages in the database Dim intLinkPageNum 'Holds the page number to be linked to 'If this is the first time the page is displayed then the guestbook record position is set to page 1 If Request.QueryString("PagePosition") = "" Then intRecordPositionPageNum = 1 'Else the page has been displayed before so the guestbook record postion is set to the Record Position number Else intRecordPositionPageNum = CInt(Request.QueryString("PagePosition")) End If 'Initalise the strSQL variable with an SQL statement to query the database by selecting all tables ordered by the decending date strSQL = "SELECT " & strDbTable & "Comments.* FROM " & strDbTable & "Comments ORDER BY Date_stamp DESC;" 'Set the cursor type property of the record set to dynamic so we can naviagate through the record set rsCommon.CursorType = 3 'Query the database rsCommon.Open strSQL, adoCon 'Set the number of records to display on each page by the constant set at the top of the script rsCommon.PageSize = intRecordsPerPage 'Get the guestbook record poistion to display from If NOT rsCommon.EOF Then rsCommon.AbsolutePage = intRecordPositionPageNum %>
|
|||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||
| © copyright 1999-2006 | EPA | all rights reserved | |||||||||||||||||||||||||||||||||