KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/highlandlabs/cqi-bin/ALFA_DATA/alfasymlink/root/domains/howardbender2/jobs/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/highlandlabs/cqi-bin/ALFA_DATA/alfasymlink/root/domains/howardbender2/jobs/delcitem-1.asp
<%@ Language=VBScript %>
<%Option Explicit%>
<!--#include file="_ScriptLibrary/adovbs.inc"-->
<!--#include file=datastore.asp-->

<%
	Dim sUserID
	sUserID = Request("userid")
	
	Dim cnSchoolJobs ' Connection Object
	Set cnSchoolJobs = Server.CreateObject("ADODB.Connection")
	cnSchoolJobs.Open sConnect
	
	Dim rsCart ' Recordset object
	Set rsCart = Server.CreateObject("ADODB.Recordset")
	rsCart.Open "SELECT * FROM CART ORDER BY itemid", cnSchoolJobs, adOpenDynamic,adLockPessimistic, adCmdText
	
	Dim thisItem 'item number
	thisItem = 1
	
	if Request.Form("CartItem").Count <> 0 then
	
	While Not rsCart.EOF
		if cInt(rsCart("itemid")) = cint(Request.Form("CartItem").Item(thisItem)) then
			rsCart.Delete
			rsCart.Update
			if thisItem < Request.Form("CartItem").Count then
				thisItem = thisItem + 1
			end if
		end if
		
		rsCart.MoveNext
	Wend
	End if
	
	rsCart.Close
	Set rsCart = Nothing
	
	cnSchoolJobs.Close
	Set cnSchoolJobs = Nothing
	
	
	Response.Redirect "checkout.asp?userid=" & sUserID
%>

Anon7 - 2021