trying to send form information via <cfhttp>
Hey guys, I have a ColdFusion question.
I have a simple form where a customer infputs their name and email address. The action takes the customer to a secondary page where I use <cfmail> emails them a coupon code and <cfhttp> sends all the coupon variables to a third party who operates our web store. Currently, the <cfmail> works perfectly; however, the <cfhttp> does not do its job.
The code is below. Anyone see what I'm doing wrong?
<CFPARAM name= form.name default="">
<CFPARAM name= form.email default="no email addy <webmaster@company.com>">
<cfset randomNumber=RandRange(10000, 99999)>
<cfset coupon="VIDEOMAKER">
<cfset resale="10">
<cfset resaleType="percent">
<cfset numDays="3">
<cfset qtyLimit="10">
<cfset description="10% Off for Videomaker Readers">
<cfset username="gtech">
<cfset password="cdsa3455">
<cfset couponName="#randomNumber##coupon##resale#OFF">
<cfmail to="#form.name# <#Form.email#>" bcc="webmaster@company.com"
from="Coupon Server <coupons@company.com>"
subject="Videomaker Discount Coupon for #form.Name#"
username="support@company.com"
password="6787">
<cfif form.name is not "">#form.Name#,</cfif>
Your personal coupon code to receive #resale#% off all Products is below.
CODE: #randomNumber##coupon##resale#OFF
Just enter this code in the shopping cart and save #resale#% instantly!
Your coupon will expire in #numdays# days.
-------------------------------------------------------
Have a Great Day!
The coupon Server
</cfmail>
<cfhttp
method="Post"
url="https://company.nowdirect.com/exec/gbackcoupon.tsb">
<cfhttpparam
name="discount"
type="url"
value="?couponName=#couponName#&coupon=#coupon#&re sale=#resale#&resaleType=#resaleType#&numDays=#num Days#&qtyLimit=#qtyLimit#&description=#description #&username=#username#&password=#password#"
>
</cfhttp>
