----- Original Message -----
From: "NZERN National Office" <[EMAIL PROTECTED]>
In a table is stored species names
eg
Oleria furfuracea
Parsonsia capularis
I want to be able to convert this to a string like
Oleria_furfuracea
Parsonsia_capularis
-----------------------------
If I understand this right, it should be as simple as
<cfset species = Replace(species, " ", "_", "ALL")>
This will replace ALL spaces (" ") in the string 'species' with
underscores ("_").
If it's to make links, there's always URLEncodedFormat(string). This
will do stuff like replacing spaces with "%20" so that the string's
URL-friendly. When you read the query string variables created like
this, decode them with URLDecode(string).
HTH,
- Gyrus
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- [EMAIL PROTECTED]
work: http://www.tengai.co.uk
play: http://www.norlonto.net
- PGP key available
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists