<cfloop list="#PNResponse#" index="pair" delimiters="&">
<cfset "#ListFirst(pair,'=')#" = ListRest(pair,'=')>
</cfloop>


Make sure that the var names are suitable for CF. Maybe it's better to create a structure


<cfset stResponse = StructNew()>
<cfloop list="#PNResponse#" index="pair" delimiters="&">
<cfset stResponse[ListFirst(pair,'=')] = ListRest(pair,'=')>
</cfloop>


Pascal

-----Oorspronkelijk bericht-----
Van: Robert Redpath [mailto:[EMAIL PROTECTED]
Verzonden: do 13/11/2003 21:25
Aan: CF-Talk
CC:
Onderwerp: Evaluate an Array


In a credit card processing app I am working on I get a response back from
the credit card processor in the following form:

PNResponse = RESULT=23&PNREF=V50035748010&RESPMSG=Invalid account number




[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to