oi Neal!! treat it as a list. use listlast(......,"/") (if memory serves me correctly... then check your db and redirect...
-- ------------------------------------ Tuesday, September 23, 2003, 1:31:25 PM, you wrote: BN> Hey guys, I have another one for ya... BN> I am try to capture part of a url string and then take that of which I BN> captured and turn it into a variable so that I can compare in our db and BN> pass to another page. Not sure if this makes sense so I will give an BN> example. BN> If some one types in their browser: BN> http://www.mywebsite.com/johnspage <http://www.mywebsite.com/johnspage> BN> There are no pages called "johnspage" so I would like to strip the name BN> "johnspage" from the url and compare it to our database for ""johnspage"" BN> and then return him to his actual page which looks like this: BN> http://www.mywebsite.com/index.cfm?page=johnspage BN> <http://www.mywebsite.com/index?page=johnspage> BN> We currently have something like this working but in asp using the IIS 404 BN> redirect and I am trying to figure out a way to do it in CF. BN> Does anyone have any ideas or better ways of doing this? BN> Thanks, stripping BN> - Neal BN> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm?link=i:4:138159 Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com

