Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / can I link 2 define pages? trying to use php "header()" command doesn't work

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

Locked

Views: 1,849

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
16 Jan 2009, 2:58 PM
#1
derek_bryant avatar

derek_bryant

Zen Follower

Join Date:
Jul 2008
Location:
Bristol UK
Posts:
162
Plugin Contributions:
0

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:blush:

21 Jan 2009, 3:17 AM
#2
remoteone avatar

remoteone

Zen Follower

Join Date:
Jan 2009
Location:
Macclesfield, South Australia
Posts:
104
Plugin Contributions:
0

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?

21 Jan 2009, 3:22 AM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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