Copy link to clipboard
Copied
Hey guys - I wrote this to send some query string to a client, but it gives me a ColdFusion error. Invalid token 'c' found on line 65 at column 6. Not sure what this means, but there isn't anything in this position in my code.
Anyone know where I'm going wrong?
<cfhttp
method="Post"
url="https://gback.nowdirect.com/exec/gbackcoupon.tsb"
<cfhttpparam
url="?couponName=#couponName#&coupon=#coupon#&resa le=#resale#&resaleType=#resaleType#&numDays=#numDa ys#&qtyLimit=#qtyLimit#&description=#description#& username=#username#&password=#password#"
>
>
Copy link to clipboard
Copied
Wrap the CFHTTPPARAM, like this:
<cfhttp
method="Post"
url="https://gback.nowdirect.com/exec/gbackcoupon.tsb">
<cfhttpparam
url="?couponName=#couponName#&coupon=#coupon#&resa le=#resale#&resaleType=#resaleType#&numDays=#numDa ys#&qtyLimit=#qtyLimit#&description=#description#& username=#username#&password=#password#"
>
</cfhttp>