Jump to content


This topic is now archived and is closed to further replies.


Problems with include

Recommended Posts

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

you can log in with

username: test

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

Share this post

Link to post
Share on other sites
You need to change this line:
<link rel="stylesheet" href="main.css" type="text/css">
<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.


Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.