Skip to main content
Participant
October 14, 2009
Question

cfhttpparam not working for me

  • October 14, 2009
  • 1 reply
  • 664 views

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#"
>

>

    This topic has been closed for replies.

    1 reply

    Ken_Ford_-_ACP-QFo4AB
    Inspiring
    October 14, 2009

    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>