|
|
|
|
![]() ![]() |
Nov 17 2007, 05:59 AM
Post
#1
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 525 Joined: 13-October 06 From: Alberta, Canada Member No.: 31,584 |
ok well I'm using a single php tag, all my pages are located on one page file, I'm just using variables to change the output... so I only need on page.. when I uploaded the file, the links didn't work.... anyone explain please? It worked on a different host that I don't use anymore... so its not the code itself... does trap just not support it?
if you wish to view the page then go here http://2kart.trap17.com CODE <?php $time = date("g:ia"); if($loc == "") { $content = <<< html Welcome to my blog! Its just been set up so don't expect anything grand for the moment. There isn't really anything on here for now, so comeback later! html; } if($loc == "art") { $content = <<< html This page will eventually have some art on it. html; } if($loc == "writing") { $content = <<< html This page will eventually have some writing on it. html; } if($loc == "articles") { $content = <<< html this page will eventually have articles about things... html; } $template = <<< html <html> <head> <title>2K Blogs\\KansukeKojima</title> </head> <body marginwidth="0" topmargin="5" rightmargin="5" leftmargin="5" bottommargin="5" bgcolor="#505050"> <link rel="stylesheet" href="css.css" type="text/css"> <table border="0" width="780" cellpadding="2" cellspacing="4" align="center"> <tr valign="top"> <td valign="top" width="780" class="head"> <img src="banner.jpg"></td></tr> <tr valign="top"> <td valign="top" width="780" class="table_class" bgcolor="#727272"> About Me | <a href="$PHP_SELF?loc=art">Art</a> | <a href="http://2kart.trap17.com" target="_blank">2K ART</a> | <a href="$PHP_SELF?loc=articles">Articles</a> | <a href="$PHP_SELF?loc=writing">Writing</a> | <a href="$PHP_SELF">Index</a> </td></tr> <tr valign="top"> <td valign="top" width="780" class="table_class" bgcolor="#727272"> $content</td></tr> <tr valign="top"> <td valign="top" width="780" class="table_class" bgcolor="#727272"> Copyright © 2004. All Rights Reserved.</td></tr> </table> </body> </html> html; echo $template; ?> This post has been edited by KansukeKojima: Nov 17 2007, 05:59 AM |
|
|
|
Nov 17 2007, 06:10 AM
Post
#2
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 4,083 Joined: 24-July 05 From: Linix, DOS and Windows…the good, the bad and the ugly Member No.: 9,787 ![]() |
I am not familiar with the "three angled bracket" method you have used in your template.
Can you provide a link that explains the method, please. The link with target=_blank does open a new window, but the content does not change for it. |
|
|
|
Nov 17 2007, 06:14 AM
Post
#3
|
|
|
|||[ n00b King ]||| ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 688 Joined: 20-June 07 From: Auckland Member No.: 45,102 |
you are using $loc but you havent assigned it?
looks like you need to set the var from get before you can start comparing it. CODE $loc = $_GET['loc'];
|
|
|
|
Nov 17 2007, 06:24 AM
Post
#4
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 525 Joined: 13-October 06 From: Alberta, Canada Member No.: 31,584 |
I am not familiar with the "three angled bracket" method you have used in your template. Can you provide a link that explains the method, please. The link with target=_blank does open a new window, but the content does not change for it. you mean the <<< part? EDIT: You know what... I think that I will just try coding it a little differently... save everyone some trouble... I think I've got a method to use.... let me see... This post has been edited by KansukeKojima: Nov 17 2007, 06:26 AM |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 13th October 2008 - 02:41 AM |