Code Bank
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingCode Bank

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old July 4th, 2004, 10:21 PM
caknight caknight is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 10 caknight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 50 sec
Reputation Power: 0
Redirect url based on database value

Hi all
I want to be able to re-direct clients who click on a URL link to a certain category.
The link would be http://www.mydomain.com/category.asp?cat_id=2

The category has a terms required select box yes/no
On clicking the URL I need to check if the terms value is yes or no, if it is yes I need
to re-direct the client to a terms page and then onto the category selected, if its no
then staight onto the category page.

On the terms page I need a way to get the original requested URL ?cat_id=2

I have read about session variables and stored URL's but can't seem to figure out
where to start.

Grateful for any help from you out there
ck

Reply With Quote
  #2  
Old July 15th, 2004, 11:20 AM
bamboo bamboo is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 168 bamboo User rank is Private First Class (20 - 50 Reputation Level)bamboo User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Instead of a URL link why not use a form button since you also have a Select Yes/no form field. This way when you go to the action file you will have the category Id and Select values readily available in:

Request.Form("id") and Request.Form("Term")

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingCode Bank > Redirect url based on database value


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT