Whats wrong with this code?
Posted: Mon Mar 20, 2006 10:06 am
Pimptastic | Please use
When u click a tab is runs the code
or $t2 $t3 which ever is clicked.
The last bit of code changes the page:
Any help would b much appreciated, I have a feeling the change to make it php5 compatable is a simple one.
Pimptastic | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
Hiay, just got back from holiday to find my site down. As I understand it there r some code changes in php5 that need to b changes. The code for my menu is pretty simple but ive had a look around and not found a solution, doesnt help my php knowlege is limited.
http://www.trescom.co.uk
The menu system used simple image tabs that when clicked change colour and change the value of a variable which changes the page.
The first bit of code changes the tab imageCode: Select all
<?php
require_once('POPUP.JS');
if (empty($t1)) {
$t1 = 't1_1';
$t2 = 't2_0';
$t3 = 't3_0';
}
?>Code: Select all
<? printf($t1)?>The last bit of code changes the page:
Code: Select all
<?
if ($c != "") {
include("".$c.".php");
} elseif ($c != 1) {
include("main.php");
}
?>Pimptastic | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]