Results 1 to 4 of 4

Thread: how can I embed the ecard script into the web page

  1. #1
    Join Date
    Dec 2008
    Posts
    29
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default how can I embed the ecard script into the web page

    I am using an open source e Commerce shopping cart to sell product. I want to offer an ecard service to my customers. Both of the script are using PHP. My shopping cart has same header (menu bar)and footer for all of pages.

    My question is how can I embed the ecard script into the page with my shopping cart's header and footer so as it will have the same look?

    Thank you for all of your help.

  2. #2
    Join Date
    Dec 2008
    Posts
    29
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Updated on how to embeded ecard into my site

    I copied the header and footer of my shopping cart and paste them into my ecard header and footer section. Now it looks like the ecard script is part of my shopping cart and I am very happy about it.

    Just for my learning experience, can someone tell me if this is the right way to do? Some people said used iframe, but a lot of people said iframe is bad. What is a right way to embed a script to a web site? Can I use PHP include to point it to my ecard script? I have tried to use this code <? include("ecard/index.php") ?>, but it did not work, then I used <? include("http://www.mysite.com/ecard/index.php") ?>, it did not work either. What have I done wrong? Does the <? include("filename.php") ?> has to be in between <head> </head> in the html page? Or can it be in the body page?

    Thank you in advance for all of your help.

  3. #3
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    If thats not working in either place try adding the whole php tag like: <?php yada yada yada ?>

    For more info on includes:
    http://www.w3schools.com/PHP/php_includes.asp
    http://us.php.net/include/

  4. The Following 2 Users Say Thank You to bluewalrus For This Useful Post:

    jackson (01-21-2009),stars (01-23-2009)

  5. #4
    Join Date
    Dec 2008
    Posts
    29
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by bluewalrus View Post
    If thats not working in either place try adding the whole php tag like: <?php yada yada yada ?>

    For more info on includes:
    http://www.w3schools.com/PHP/php_includes.asp
    http://us.php.net/include/

    Thank you very much for your reply. Will try.

Bookmarks

Posting Permissions

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