Problem with URL display in browser

2006-08-23 Thread Lee Bailey
I'm using a search engine friendly URL system, which works along the following lines; One of the columns in my table is called 'shortheader', which basically takes the article headline, and makes it url friendly. Therefore, 'This is a Test' becomes 'this_is_a_test' as the shortheader. This

Re: Problem with URL display in browser

2006-08-23 Thread Lee Bailey
I'm using a search engine friendly URL system, which works along the following lines; One of the columns in my table is called 'shortheader', which basically takes the article headline, and makes it url friendly. Therefore, 'This is a Test' becomes 'this_is_a_test' as the shortheader.

Stripping Characters from a String

2006-08-11 Thread Lee Bailey
Hi Folks, I'm trying to strip characters from a form string, like so; The entered text : This is a string with £ and ? characters The desired result : this_is_a_string_with_and_characters The aim is that I can use this as a 'safe' URL parameter for navigating the website. Obviously, if the

Re: Stripping Characters from a String

2006-08-11 Thread Lee Bailey
Try: cfset str = This is a string with £ and ? characters cfset str_safe = ReReplaceNoCase(str,[ [EMAIL PROTECTED]*+=-],_,ALL) cfset str_safe = ReReplaceNoCase(str_safe,__,_,ALL) cfset str_safe = ReReplaceNoCase(str_safe,__,_,ALL) cfset str_safe =

Problem with database insert

2001-10-25 Thread Lee Bailey - Element2 Limited
Hi all, I have a form which includes a file field, however this is an optional field for the user. The 'insert.cfm' page checks to see if the user has selected a file and if so gets the name of it and all the other form data and inserts it into a database. The problem I'm having is what code I

Re: Problem with database insert

2001-10-25 Thread Lee Bailey - Element2 Limited
Perfect! Thanks Craig, much appreciated :-) ~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: