Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP 3.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 29th, 2005, 11:39 AM
Registered User
 
Join Date: Sep 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Response script with tracking infomation

I have created a script that would allow someone to track their order status, ie. ups tracking number. However I am having trouble writing the right code to send to their browser. This is what I have so far:

 Orderno = Trim(Request.Form("Ordernumber"))

 Set adoRS = Server.CreateObject("ADODB.Recordset")

 sSql = "SELECT * from otracking where orderno='" & Ordernumber & "'"
 Set adoRS = db.Execute(sSQL)

 If adoRS.EOF THEN
 Response.Write "<BODY BGColor=beige>"
 Response.Write "<CENTER><H1>Your Customer Number has not been found.</H1></CENTER><BR>"

 Else Response.Write "<b>Your Order Tracking Infomation is as follows:<b><br>"
      Response.Write "<BR>"
      Response.Write adoRS("trackingid")' This is where I am having the trouble.
      adoRS.MoveNext


 End if

IF Err.number <> 0 then
 Response.Write "Error loading information<BR>" & vbcrlf
 Response.Write "Please check the number and try again"
 Response.Write "Description:" & err.Description
 err.Clear
 Response.End
 End If






Similar Threads
Thread Thread Starter Forum Replies Last Post
Tracking My mileage rkellogg VB How-To 2 September 6th, 2006 11:19 PM
Tracking who is changing what? rrhandle SQL Server 2000 1 August 15th, 2006 03:03 AM
Calculating infomation in different rows cuzintone SQL Server 2000 7 March 6th, 2005 10:28 PM
Reading XMLHTTP response object in VB Script afrika_people Classic ASP XML 0 March 5th, 2005 08:22 AM
SESSION tracking natmaster Beginning PHP 1 August 18th, 2003 01:52 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.