KansukeKojima 0 Report post Posted November 17, 2007 (edited) 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://forums.xisto.com/no_longer_exists/ <?php$time = date("g:ia");if($loc == "") {$content = <<< htmlWelcome 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 = <<< htmlThis page will eventually have some art on it.html;}if($loc == "writing") {$content = <<< htmlThis page will eventually have some writing on it.html;}if($loc == "articles") {$content = <<< htmlthis 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;?> Edited November 17, 2007 by KansukeKojima (see edit history) Share this post Link to post Share on other sites
jlhaslip 4 Report post Posted November 17, 2007 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. Share this post Link to post Share on other sites
sonesay 7 Report post Posted November 17, 2007 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. $loc = $_GET['loc']; Share this post Link to post Share on other sites
KansukeKojima 0 Report post Posted November 17, 2007 (edited) 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... Edited November 17, 2007 by KansukeKojima (see edit history) Share this post Link to post Share on other sites