footer and php in OSCommerce

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Martin Kiefer

    footer and php in OSCommerce

    Hi there

    I am not sure if this is php, java or html related. But is there a simple
    way to place some text in the footer of a web page in a php document?

    What I wants to do, i place the total on the invoice.php in /catalog/admin
    at the button of the page instead of just belov the products lines.

    Hopes this description makes sense :-)

    --
    Best regards
    Martin Kiefer




  • FLEB

    #2
    Re: footer and php in OSCommerce

    Regarding this well-known quote, often attributed to Martin Kiefer's famous
    "Wed, 26 May 2004 19:36:40 +0200" speech:
    [color=blue]
    > Hi there
    >
    > I am not sure if this is php, java or html related. But is there a simple
    > way to place some text in the footer of a web page in a php document?
    >
    > What I wants to do, i place the total on the invoice.php in /catalog/admin
    > at the button of the page instead of just belov the products lines.
    >
    > Hopes this description makes sense :-)[/color]

    In PHP, all you have to do it put in an include(); statement with whatever
    file you want included. The file can be PHP, HTML, or text (although
    anything in <? ?> tags will get run through the PHP parser regardless).

    For example:

    if you have somepage.php written as --
    -----------------------------------
    Pretend this is a web page.
    <?php include("footer .inc.php"); ?>
    -----------------------------------

    and footer.inc.php, containing --
    -----------------------------------
    ....and pretend this is your footer.
    -----------------------------------

    somepage.php would come to the viewer as --
    -----------------------------------
    Pretend this is a web page.
    ....and pretend this is your footer.
    -----------------------------------


    --
    -- Rudy Fleminger
    -- sp@mmers.and.ev il.ones.will.bo w-down-to.us
    (put "Hey!" in the Subject line for priority processing!)
    -- http://www.pixelsaredead.com

    Comment

    Working...