Home | Advertising Info121 USERS CURRENTLY ONLINE   
   Site Search Contact Us Tuesday, April 24, 2018  

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.


We didn't realize
the site was so popular.

Other Stuff

vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program 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 - 2018 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.

Active Server Pages asp source code database MS SQL MS Access .mdb adovbs.inc cookies calendar codes sql commands scripts asp programming tutorials iis web server components 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