Jump to content

[SOLVED] My CSS limits me


mike12255

Recommended Posts

Because my CSS i cannot change do something like 

 

header ("Location: index.php");

 

when i try it, i get this error:

 

Warning: Cannot modify header information - headers already sent by (output started at /home/sgiclan/public_html/testforum/reply.php:5) in /home/sgiclan/public_html/testforum/reply.php on line 66

 

 

here is my css:

 

<!---

body {
a:link, a:visited, a:active { text-decoration: none}
font-family:Verdana, Sans-serif;
color; #000000;
font-size: 12px
}
input,textarea, select,{
color : #000000;
font: normal 12px;
border-collapse: collapse; border: 1px solid #000000;
}
.maintable {border: 0px ; width: 100%; padding: 0px; background-color: #FFFFFF} /*main table for forum*/
.regrow {font-family: Verdana,Sans-serif; color: #000000; font-weight: bold; background-color: #FFFFFF;font-size: 12px;} /*registration row, mainly here for symetry*/
.headline {font-family: Verdana,Sans-serif;font-weight: bold;color: #FFFFFF;background-color: #003366;font-size: 11px;} /*headline row, the first row that says forum name, topics, posts and such*/
.forumrow {font-family: Verdana,Sans-serif; color: #000000;background-color: #F2F2F2;font-size: 12px;} /*color of the forum rows*/
.mainrow a:link, a:visited,  a:active { text-decoration: none;}
.mainrow {font-family: Verdana,Sans-serif; color: #000000;background-color: #F2F2F2;font-size: 12px; a:link, a:visited, a:active { text-decoration: none}} /*color of the forum rows*/
.maintables{background-color: #FFFFFF; width: 85%; padding: 0px; border: 3px solid; cellspacing: no} /*main table for forum*/
--->

 

This is seriously limitting me does anyone know how to fix this?

Link to comment
Share on other sites

well i start my php file like this:

 

<?php
include "connect.php"; //connection string
include("include/session.php");


print "<link rel='stylesheet' href='style.css' type='text/css'>";
print "<table class='maintables'>";
print "<tr class='headline'><td>Reply</td></tr>";
print "<tr class='maintables'><td>";

 

and if my first if statment returns false it gose to:

 

}else{
header ("Location: index.php");
}

 

 

is that being specific enough or do you guys need more?

Link to comment
Share on other sites

i still dont see the header call in there mike

 

but regardless I assume you want the

 

print "<A href='index.php'>Click here</a>&nbsp";

 

to be the header call in which case it cant because headers have already been sent in the first thing that outputs to the browser ie your first print command: print "<link rel='stylesheet' href='style.css' type='text/css'>";

 

 

EDIT: what does this page do, then I might be able to help more

Link to comment
Share on other sites

or sorry that was my temp fix i copy and pasted. Here is the header:

 

}else{
header ("Location: index.php");
}

 

this page displays a forum for users to enter a reply to a post however is the topic is locked and they are not an admin and try entering something like http://***-***.info/testforum/message.php?id=23 i want them to get redirected to the main forum page

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.