Link to home
Start Free TrialLog in
Avatar of armanbena
armanbena

asked on

URLEncode a link to a file

Hi,
I have a link to a file that is not opening.  I found the URLEncode function might work.  
However, I've tried several different ways and am not sure if it can be used in a link for a file, because in between different variables there are spaces.  I need to know how I can set the URLEncode function, if I'm doing something wrong.
This is what should be included:

<cfloop list="#qGetData.file#"  index="i"   >
                   
<a href="http://server:8001/obi/Path-MA/Attachments_Directory/Marketing/#qGetData.group_Name# ID #url.id# (By #qGetData.submitted_By#) - #DateFormat(qGetData.date_Submitted, 'mmddyyyy')#/#i#")>#i#</a><br/>      
</cfloop>

Variables like group_Name may have spaces, but the path itself does have spaces.  How to go about this?
ASKER CERTIFIED SOLUTION
Avatar of _agx_
_agx_
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial