Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics 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 June 14th, 2003, 05:07 PM
Authorized User
 
Join Date: Jun 2003
Location: Gulfport, Ms, USA.
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to hcweb
Default Querystrings to Variables

Can anyone help me convert a multi-value querystring to variables for use in a select statement ?

The querystring looks like this:

gptresults.asp?rlc_book=133&rlc_page=16

The represented numbers in the querystring will change constantly. I guess I would be looking for something like so:

strBook = Request.Querystring("rlc_book")
strPage = Request.Querystring("rlc_page")

Is this even possible, and if so, how would I accomplish this?
Thanks for any help in advance !

Chris
 
Old June 14th, 2003, 06:54 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Chris,

What exactly do you need to do?? The way you presented your code here, is the way to go. That is, after executing your code, strBook and strPage will contain the expected values (133 and 16).

What do you need to do with them afterwards? What do you mean with a Selecet statement? Related to a database query, or to a Select Case statement? If the latter is true, you can't use a Select Case statement for more than one variable, so you'll need some nested If / Then statements.

Elaborate some more on what you need to accomplish, so we can help a bit more.....

Cheers,

Imar




Similar Threads
Thread Thread Starter Forum Replies Last Post
Querystrings butchered abq23 Classic ASP Professional 2 April 7th, 2006 08:22 AM
Multiple Selects in SQL QueryStrings doonman BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 6 January 30th, 2006 07:01 AM
replacing querystrings with fake page names mase912 C# 0 November 24th, 2004 04:47 AM
querystrings in chapter 8 LL BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 2 November 19th, 2003 10:36 AM
Querystrings and Redirects hcweb Classic ASP Basics 3 July 30th, 2003 08:50 AM





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