Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2008
    Location
    Bristol UK
    Posts
    162
    Plugin Contributions
    0

    Default can I link 2 define pages? trying to use php "header()" command doesn't work

    I am trying to use the php header statement to link from define_page_2.php to define_page_3.php with the header command
    I've cut away all preceeding statements and left for define_page_3.php the following code:

    <?php
    header("Location: index.php?main_page=page_3");
    ?>

    Can anyone see the problem
    Is there another command that will do the auto link?
    The header command does not like preceeding output.

    thanks for any help

    Derek

  2. #2
    Join Date
    Jan 2009
    Location
    Macclesfield, South Australia
    Posts
    102
    Plugin Contributions
    0

    Default Re: can I link 2 define pages? trying to use php "header()" command doesn't work

    If your linkin to page_3 from within defines_page_2 then the internal link code will be
    <a href="index.php?main_page=page_3">go to page 3 text</a>
    or if your just inserting the link address in the html editor
    just enter index.php?main_page=page_3

    What I want to know is:
    How do I define more pages . Ive created the new pages w my own (eg "define_disclaimer_1.php")
    But it also needs to be defined somewhere for my links to work
    Anyone help?

  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: can I link 2 define pages? trying to use php "header()" command doesn't work

    Get the more pages module in the downloads section and it will add 4,5&6 properly

  4. #4
    Join Date
    Jan 2009
    Location
    Macclesfield, South Australia
    Posts
    102
    Plugin Contributions
    0

    Default Re: can I link 2 define pages? trying to use php "header()" command doesn't work


  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: can I link 2 define pages? trying to use php "header()" command doesn't work

    Quote Originally Posted by KoBra
    Get the more pages module in the downloads section and it will add 4,5&6 properly
    Was I not clear?

    http://www.zen-cart.com/index.php?ma...oducts_id=1125

 

 

Similar Threads

  1. Replies: 1
    Last Post: 30 Sep 2012, 06:41 AM
  2. image link to "page&id=6" doesn't work, please help
    By panuma in forum General Questions
    Replies: 2
    Last Post: 29 Nov 2010, 09:10 PM
  3. Replies: 3
    Last Post: 9 Nov 2009, 12:24 AM
  4. Replies: 2
    Last Post: 18 Nov 2006, 09:04 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
  •  
disjunctive-egg