the first 2 list elements will give the protocol and the domain name, and
the remaining list elements would give you the script name and query
string... something like:
<cfset domain_part = listgetat(form.myurl,1,'/') & '//' &
listgetat(form.myurl,2,'/')>
<cfset form.myurl = listdeleteat(form.myurl,1,'/')>
<cfset form.myurl = listdeleteat(form.myurl,1,'/')>
<cfset script_and_query_part = '/' & form.myurl>
or you could look at using a regular _expression_.
Alex
-----Original Message-----
From: Ketan Patel [mailto:[EMAIL PROTECTED]
Sent: 01 October 2003 12:34
To: CF-Talk
Subject: RE: Extract Domain and scriptname seperate
Hi,
In my case I have a form where people submit a URL and on post I have to
extract this into pieces.
Ketan Patel
G3 Technology Group, LLC
Graphics III Advertising, Inc.
(410)789-7007 or (800)783-1799
"It's Not Creative if it doesn't Sell."
http://www.g3group.com <http://www.g3group.com> http://www.g3group.com
<http://www.g3group.com>
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

