Using Values in Different Areas of the Page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AJB
    Junior Member
    • Jun 2004
    • 1

    #1

    Using Values in Different Areas of the Page

    Hi,

    I don't know much of scripting, so I am not sure if what I am trying to do is even possible, but I figured it wouldn't hurt to ask.

    Basically, I created a PHP Form at http://www.soto-usa.org/signup2.php and one of the fields that the person has to fill out is the Total for their order. This field is named (PHP wise) "Amount".

    As you can see, there is a Paypal add to cart link at the bottom of the page. An attribute of that link is the value, which Paypal needs to start the order process. I am wondering if there is any way that I can plug in the Amount value from the first form to the 2nd form and have it sent to Paypal.

    Hopefully I made enough sense in my explanation and thanks in advance for your help!
  • Jonathan
    Senior Member
    • Mar 2004
    • 1229

    #2
    I'm sure there...*possibly* might be a way, but
    that'd be beyond me; for all I use PayPal, I've never tried this.

    Have you checked HotScripts.com for anything yet?
    "How can someone be so distracted yet so focused?"
    - C

    Comment

    • Pedja
      Senior Member
      • Mar 2004
      • 329

      #3
      you should check som etutorial on amanging forms in PHP. What you need is simple thing. When you submit form all data si passed to target script as POST or GET vaiables (depends what you choose). You can read them form target script quite easy.

      Check for $HTTP_POST_VARS and $HTTP_GET_VARS.

      If you need to pass variables without forms then you should use session, cookies or keep values on server.

      Pedja

      Comment

      • sdjl
        Senior Member
        • Mar 2004
        • 502

        #4
        Once you have a basic understanding of forms and PHP, you might want to look at Paypals IPN system.

        PayPal is the safer, easier way to pay online without revealing your credit card number.


        David
        -----
        Do you fear the obsolescence of the metanarrative apparatus of legitimation?

        Comment

        Working...