PDA

View Full Version : Show Categories


web9000
September 23rd, 2003, 02:21 PM
I have removed the category links from the homepage and want to make a seperate page to show them

I use this in the index.php for links

<?
if ($SESSION['show_home_page']) {
include "home.php";

}
include "$cart_isp_root/cart_content.php";

if ($cats) include "cats.php";
if ($contact) include "contact.php";
if ($control) include "control.php";
if ($disclaimers) include "disclaimers.php";
if ($form_buy) include "form_buy.php";
if ($form_sell) include "form_sell.php";
if ($form_trade) include "form_trade.php";
if ($location) include "location.php";
if ($mission) include "mission.php";
if ($story) include "story.php";
if ($webmaster) include "webmaster.php";

?>

on the cats.php page i need a few lines of text and then to show the categories below the text

can i use

$action = "show_cats_detail";

in there somewhere to do this?

what would be the syntax for using this?

i tried a link like this

"index.php?cats=1&action=show_cats_detail"

but that puts the category links at the top and my text at the bottom