Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
colesc8 #1
Variables in PayPal post
The following code posts information to PayPal:
<td><form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="name@yourname.com">
<input type="hidden" name="item_name" value="Conference_Fee">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="amount" value="#Form.totalCost#">
<input type="image" src="http://www.paypal.com/en_US/i/btn/x-click-but01.gif"
name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form></td>
I have an input form that gathers information about the user and his
requirements which posts to an action page which genreates a total cost. The
code above is on the action page and I want to post the total cost to PayPal.
The line of code that I am enquiring about is the one below and I have a couple
of questions that I would really appreciate answers to if anyone has been here
before.
<input type="hidden" name="amount" value="#Form.totalCost#">
1) My variable on the action page is #totalCost# Is the syntax I have used
above correct?
2) Do I need to put Form. in front of the variable.
3) Have I got hold of the wrong end of the stick entirely?
Grateful for all help.
colesc8 Guest
-
Using CFHTTP to past form variables to paypal
here is the problem I'm using CFHTTP with the Method="POST" to past form variables to paypal but instead the page where I submit the first form... -
Post Variables sometimes empty
Hello, I have an PHP application running on a debian box with Apache 2. The package versions for php and apache are: - apache2 2.0.49-1 -... -
Apache/PHP Post Variables
I'm working with someone on a PHP project. The other person is doing testing of scripts on their personal machine using Apache as a web server.... -
Problem with the post variables.
Guys I have a problem here. I'm using PHP 4.3.2 and httpd 1.3.28. Look my exemple. I have a page whith a Form method post, and I submit this page... -
[PHP] Problem with the post variables.
ooooooops .. my mistake .. Usually I check thing before I post, forget it once .. that's how I make mistakes.. Anyways, I still am pretty sure... -
Maneesh Tikkiwal #2
Re: Variables in PayPal post
everything seems to be fine mate. Just remove the FORM. in front of the variable.
Maneesh Tikkiwal Guest
-
colesc8 #3
Re: Variables in PayPal post
Thanks, Maneesh. Must be the first time I've nearly got something right!
colesc8 Guest



Reply With Quote

