Variables in PayPal post

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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 -...
    3. 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....
    4. 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...
    5. [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...
  3. #2

    Default Re: Variables in PayPal post

    everything seems to be fine mate. Just remove the FORM. in front of the variable.
    Maneesh Tikkiwal Guest

  4. #3

    Default Re: Variables in PayPal post

    Thanks, Maneesh. Must be the first time I've nearly got something right!
    colesc8 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139