Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Apparently This Isn't Working..., help please!
KansukeKojima
post 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
Go to the top of the page
 
+Quote Post
jlhaslip
post 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 Icon

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
Spam Patrol



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.
Go to the top of the page
 
+Quote Post
sonesay
post 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'];
Go to the top of the page
 
+Quote Post
KansukeKojima
post 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



QUOTE(jlhaslip @ Nov 16 2007, 11:10 PM) *
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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Help For My Seagate Sata Hard Drive!(9)
  2. Slow Connection With Linksys Wrt54g Router(8)
  3. Ipod Not Working, Need Help(20)
  4. The Reason Why People Get Drunk?(37)
  5. Problems With Outlook Express(7)
  6. Mysql Database Not Working(3)
  7. Working With Autistic Children(15)
  8. Hosting Application Is Not Working For Me(2)
  9. Sata Hard Drive Not Recognized By Windows(12)
  10. Sound Card Not Working Properly.(5)
  11. Gallery Not Working(2)
  12. How To Make Your Pc Work Faster(16)
  13. Flash Wmode(transparent) Pramater In Firefox3(on Linux) - Not Working(1)
  14. Adjusting Rows/cols Of Frames In Frameset Using Javascript Is Not Working In Firefox 3 Is Not Working(4)
  15. Help With Xp - Autoupdate Not Working [resolved](13)
  1. My File Manager Is Working(2)
  2. Backup Not Working [resolved](5)
  3. Ftp Access Has Stopped Working All Of A Sudden [resolved](5)
  4. Xobni - Working With Mails Got Easier.(0)
  5. Speed Up Your Internet Explorer Fast As Firefox(17)
  6. Haha, This Isn't My Rant, But It's A Very Good One(4)
  7. Test Your Php Pages W/o Upload/internet(57)
  8. Strange Isn't It...(0)
  9. File Manager Not Working(2)
  10. Gahhh This Isn't Going Well Please Help!(12)
  11. What Are You Listening To?(122)
  12. A:/ Drive Not Found(4)
  13. My Subdomain Not Working(3)
  14. Working Overdosed Clan Script(5)
  15. .php?id=html Not Working(15)


 



- Lo-Fi Version Time is now: 13th October 2008 - 02:41 AM