Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Senior Coder
    Join Date
    Aug 2009
    Location
    Mansfield, Nottinghamshire, UK
    Posts
    1,555
    Thanks
    57
    Thanked 148 Times in 147 Posts

    Paypal intergration

    Morning, long time since i've posted been really busy.

    Now, this is sending me crazy but I have PHP code to generate a paypal button for subscription use.

    PHP Code:
    <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="0000000">
    <Input type="hidden" name="custom" value="<?php md5($code.microtime()); ?>"/>
    <input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
    <img alt="" border="0" src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
    </form>
    But what I want to do, and know how, is sending 1 variable accross through the payment process and out to a page once the payment proccess is complete. I have tried for days to understand documentation and read threads on the matter but non seem to help. My variable is

    PHP Code:
    <Input type="hidden" name="custom" value="<?php md5($code.microtime()); ?>"/>
    Any help is much appreciated.
    Website Design Mansfield
    PHP Code:
    function I_LOVE(){function b(&$b='P'){$b.='P';}function a($_){return $_++;}$b='P';define("B",'H');b($b=implode('',array($b=a($b),$b=a(B))));b($b);return $b;}
    echo 
    I_LOVE(); 

  • #2
    Senior Coder kbluhm's Avatar
    Join Date
    Apr 2007
    Location
    Philadelphia, PA, USA
    Posts
    1,509
    Thanks
    3
    Thanked 258 Times in 254 Posts
    Have you tried echoing the value? There is no `echo` (or `print`, etc) so nothing will be sent to the client.
    PHP Code:
    <input type="hidden" name="custom" value="<?php echo md5$code microtime() ); ?>"/>
    Last edited by kbluhm; 01-13-2010 at 04:54 PM.


  •  

    Posting Permissions

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