php include

Discussion in 'PHP' started by le007, Apr 9, 2009.

  1. #1
    Hey,
    I'm trying to implement paypal cart into a page. Question I have is this:

    When you want to view your cart the link is to the paypal website itself - the way around this I was going with was to have an iframe and target it into there.

    Someone told me that I can use a php include for this instead? Could someone please give me an example of this?
    Thank you
     
    le007, Apr 9, 2009 IP
  2. le007

    le007 Well-Known Member

    Messages:
    481
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #2
    Any ideas anyone?
     
    le007, Apr 9, 2009 IP
  3. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #3
    could use CURL maybe, iframe is best opt though.
     
    shallowink, Apr 9, 2009 IP
  4. Jake-Johnson

    Jake-Johnson Peon

    Messages:
    839
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    
    
    <?php
    
     $my_page = "http://paypal.com/your-paypal-link.php"; //Where the include is from or what is included.
    
     include($my_page); //Including the page
    
    ?>
    
    
    PHP:
    But put your own link you'd like to include in the page.
     
    Jake-Johnson, Apr 10, 2009 IP
  5. le007

    le007 Well-Known Member

    Messages:
    481
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #5
    Thanks for your replies guys - it maybe a dynamic link eg coming from a cart etc will that include still work?

    Also, there is a click here to continue shopping button on paypal - if I use include and then click on that button will it bring me back to my previous included page?

    Many thanks,
    Le007
     
    le007, Apr 10, 2009 IP