good idea... I forgot that that is something I always do when debugging things like that. add the two "-" to the output like this: (one in front, one in back)
Just before the pay_pal code... add these lines. <!---------> <cfoutput>-#whatever_variable_you_want_to_see_#-</cfoutput> <cfabort> <!---------> the "-" stuff puts a dash in front and back of the item. ie. if it was 25.00, you'd see -25.00- that way you'll know if there are any extra characters (like spaces). if you see -25.00 - then you know that you have extra chars. You can get rid of them with the trim function but, I would be more interested in finding out why my code was generating those extra chars. play with or edit the code until you get the value in the correct format, just edit and do a refresh of the webpage. Once you get it right, either zap the lines or comment them out. -----Original Message----- From: Kwang Suh [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2003 12:14 AM To: CF-Talk Subject: Re: output a # ? Try trimming the number before you send it. PayPal might not be liking the spaces. ----- Original Message ----- From: <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, August 28, 2003 10:33 PM Subject: output a # ? > ok, i have a form that adds up some form money totals then it should be > inserted into a paypal buy button as a dynamic total. > > the variable for the purchase total is ummm #total# > it on its own output the total as a whole #, like 25 then when i need to > display it i use dollarformat. > > and this is what i put into the form to add the total > "#numberformat(total, '_____.__')#" > hoping that it would input the total as 25.00 and send it to paypal as such > > but i get this error from paypal > > Error Detected > > > > > You have entered an invalid amount. Please make sure that all punctuation > marks are in the correct places and that you only include the numeric > portion of the amount. For example, if the amount is five U.S. Dollars, > you would enter 5.00. > > > any thoughts? > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm