Jump to content


Photo

Problems with include


  • Please log in to reply
2 replies to this topic

#1 tomfmason

tomfmason
  • Staff Alumni
  • Advanced Member
  • 1,696 posts
  • Locationstealing your wifi

Posted 05 July 2006 - 12:42 PM

In my login script, if the login is sucessful I include account.php. That works fine but the page is not in the correct layout. It is as if the style sheet is not included.

Here is alink to the site
http://www.owpt.biz/home/index.php

you can log in with

username: test
password:qh9jf442

If you login you will see what I am talking about.
Any suggestions would be great.

Traveling East in search of instruction, and West to propagate the knowledge I have had gained.

current projects: pokersource

My Blog | My Pastebin | PHP Validation class | Backtrack linux


#2 Orio

Orio
  • Staff Alumni
  • Advanced Member
  • 2,491 posts

Posted 05 July 2006 - 12:46 PM

You need to change this line:
<link rel="stylesheet" href="main.css" type="text/css">
to:
<link rel="stylesheet" href="../main.css" type="text/css">
(or <link rel="stylesheet" href="../../main.css" type="text/css">)

Because there's no such file as main.css in the includes folder.

Orio.
Think you're smarty?

(Gone until 20 to November)

#3 tomfmason

tomfmason
  • Staff Alumni
  • Advanced Member
  • 1,696 posts
  • Locationstealing your wifi

Posted 05 July 2006 - 12:50 PM

lol thanks

Traveling East in search of instruction, and West to propagate the knowledge I have had gained.

current projects: pokersource

My Blog | My Pastebin | PHP Validation class | Backtrack linux





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users