Link to home
Create AccountLog in
Avatar of Coast Line
Coast LineFlag for Canada

asked on

passing form values to cfhttp request as comma delimited

hi experts. too much beer and my lost mind. i have a form field. a select menu where i can select multiple items. on the click of a button, i want to pass the selected items as a comma delimited list. i am confused, i tried using a loop but it failed:

here is what i tried.
<cfloop list="form.selectusers" index="k">
  <cfhttp url="http://smslane.com/vendorsms/pushsms.aspx?user=abc&password=xyz&msisdn=#k#&sid=WebSMS
&msg=#form.message#&fl=0"></cfhttp>  
</cfloop>
 
but i want to pass something like this:
 
  <cfhttp url="http://smslane.com/vendorsms/pushsms.aspx?user=abc&password=xyz&msisdn=996734673,99374673,7364387483&sid=WebSMS
&msg=#form.message#&fl=0"></cfhttp>  
 
like multiple mobile numbers using comma separation. how can i do that. plea guide me

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of duncancumming
duncancumming
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of gdemaria
always remember, don't drink and code :)
Avatar of Coast Line

ASKER

Thanks! Well i realize that Beer affect my brain a lot. :)