Home | Advertising Info72 USERS CURRENTLY ONLINE   
   Site Search Contact Us Tuesday, November 24, 2015  

User Management Application with web based screens that allow you to manage users.
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.

Try a free httpZip trial now and compress for less!

We didn't realize
the site was so popular.

Other Stuff

Active Server Pages what is asp programming how to sample asp example code scripts software asp forum mail sessions applications global.asa CJWSoft ASPProtect ASPBanner ASPClassifieds

(Advanced)  (Components)  (Database)  (General)  (Vbscript)


Subject: Re: Redirect based on URL typed by user....
From: Pete
Date: 2/22/1999 7:04:34 AM


Try this :

'Declare varibles
Dim UserURL
Dim NewURL

'Get info from editbox called URL on the last form
'Example input "Pete.hickson.com"
UserURL = Request("URL")

'Split the string up at "." returning all
'substrings (-1) using a textual compare (1)
UserURL = Split(UserURL, ".", -1, 1)
'UserURL(0) = "Pete"
'UserURL(1) = "hickson"
'UserURL(2) = "com"

'Redirect the user
NewURL = "http://www." & UserURL(1) & "." & NewURL = NewURL & UserURL(2) & "/" & UserURL(0)

'NewURL = http://www.hickson.com/Pete
Response.redirect NewURL

That should do it.


P.S. you can find the best VBScript site at http://msdn.microsoft.com/scripting/default.htm if you need a hand understanding the commands.

Previous Message

Follow Up - Oops! - Pete 2/22/1999 7:09:49 AM


   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright 1998 - 2015 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

PowerASP active server pages asp.net microsoft .net framework sdk learn asp what is asp tutorial learn asp.net CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com