Achtergrondkleur veranderd

Gestart doorJoeri3 reacties25 weergaven

4 berichten · pagina 1 van 1

Joeri

Lid · Topicstarter

Berichten
5.737
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik heb een script dat de achtergrondkleur veranderd wat goed werkt etc maar als ik het op page plaats waar ander script staat werkt het niet meer zoals hier :

[COLOR= #0000BB]<?php[/COLOR]

    [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]parser.php[/COLOR][COLOR= #007700]);[/COLOR]
    [COLOR= #FF8000]// Database details[/COLOR]
    [COLOR= #0000BB]$name_db[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"joeriwii_cpiscool"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Name of database[/COLOR]
    [COLOR= #0000BB]$user_db[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"joeriwii_cpcool"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Username for database[/COLOR]
    [COLOR= #0000BB]$pass_db[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"******"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Password for database[/COLOR]
    [COLOR= #0000BB]$host_db[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"localhost"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Host for database[/COLOR]
    [COLOR= #0000BB]$connect_db[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$host_db[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$user_db[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$pass_db[/COLOR][COLOR= #007700]);[/COLOR]

    [COLOR= #FF8000]// Making connection to our database         [/COLOR]
    [URL="http://www.php.net/mysql_select_db"]mysql_select_db[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$name_db[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$connect_db[/COLOR][COLOR= #007700]);[/COLOR] 
[COLOR= #0000BB]$achtergrond[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]kleur[/COLOR][COLOR= #007700]];[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]submit[/COLOR][COLOR= #007700]]))
{[/COLOR]
    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700](![/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$achtergrond[/COLOR][COLOR= #007700]))
    {[/COLOR]
        [URL="http://www.php.net/setcookie"]setcookie[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"achtergrond"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$achtergrond[/COLOR][COLOR= #007700]);[/COLOR]
        [COLOR= #0000BB]$form[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Achtergrond verandert naar: "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$achtergrond[/COLOR][COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$meta[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"<meta http-equiv="refresh" content="3;url=achtergrond2.php" />"[/COLOR][COLOR= #007700];
    }[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
        [COLOR= #0000BB]$form[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Geen geldigen achtergrond."[/COLOR][COLOR= #007700];
    }    
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
    [COLOR= #0000BB]$form[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"<form method=POST action=achtergrond2.php>
    <p>
    <input type=radio value=#333333 checked name=kleur>Grijs<br>
    <input type=radio name=kleur value=#666666>Grijzer<br>
    <input type=radio name=kleur value=#999999>Grijst :P<br>
    <input type=submit value=Submit name=submit>
</form>
"[/COLOR][COLOR= #007700];
}[/COLOR]
?>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> 
<link rel="stylesheet" type="text/css" href="opmaak.css" /> 
<title>CPiscool | Voor alles over cp</title> 

  <script type="text/javascript"> 
  function insertBBCode(elementID, bbCode)  
{  
    if (typeof elementID === undefined || typeof bbCode === undefined) return;  
    if (document.getElementById(elementID)) {  
        var elementObject = document.getElementById(elementID);  
        if (document.selection) { // IE  
            elementObject.focus();  
            var sel = document.selection.createRange();  
            sel.text = bbCode;  
        } else if (elementObject.selectionStart || elementObject.selectionStart == 0) {  
            var startPos = elementObject.selectionStart;  
            var endPos = elementObject.selectionEnd;  
            elementObject.value = elementObject.value.substring(0, startPos) + bbCode + elementObject.value.substring(endPos, elementObject.value.length);  
        } else {  
            elementObject.value += bbCode;  
        }  
        elementObject.focus();  
    }  
} 
</script> 
[COLOR= #0000BB]<?php[/COLOR] 
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$meta[/COLOR][COLOR= #007700];[/COLOR] 
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<body bgcolor="[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$HTTP_COOKIE_VARS[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"achtergrond"[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]">"[/COLOR][COLOR= #007700];[/COLOR] 
?> 
</head> 

<body> 

<div id="header"></div> 

<div id="menu"> <h1> <a title="home" href="index.php" target="_self" class="menu">Home</a> | 
<a title="Nieuws" href="nieuws.php" target="_self" class="menu">Nieuws</a> | 
<a title="CP-paginas" href="paginas.php" target="_self" class="menu">CP-paginas</a> | 
<a title="Adverteren" href="Adverteren.php" target="_self" class="menu">Adverteren</a>|  
<a title="Inloggen" href="inloggen.php" target="_self" class="menu">Inloggen</a> | 
<a title="Berichtenbalk" href="berichtenbalk.php" target="_self" class="menu">Berichtenbalk</a> | 

<a title="Contact" href="contact.php" target="_self" class="menu">Contact</a> | 
<a title="Settings" href="achtergrond2.php" target="_self" class="menu">Instellingen</a> |
 </h1> </div> 
<div id="content"> 
<div id="leftcontent"> 
    <div id="leftcontentheader"></div> 
    <div id="leftcontentachtergrond"><h2>Berichtenbalk</h2> 
<h3> 
        [COLOR= #0000BB]<?php[/COLOR] 
          [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]])) {[/COLOR] 
            [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]]; 
          }[/COLOR] 
          [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]])) {[/COLOR] 
            [COLOR= #0000BB]$naam[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]]; 
          }[/COLOR] 
        ?>  
          <form method="POST"> 
              <input type="hidden" name="woot" value="1"> 
              <strong>Naam</strong> <br /> 
              <input type="text" name="naam" maxlength="15" value="[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$naam[/COLOR][COLOR= #007700];[/COLOR] ?>"> <br /><br /> 
                
              <strong>Bericht</strong><br /> 
              <textarea id="bericht" name="bericht" rows="5" cols="33" style="overflow:hidden">[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700];[/COLOR] ?></textarea><br /> 
              <i>Het bericht mag maar 100 tekens groot zijn</i><br /><br /> 
              <input type="Submit" value="Plaats"> 
          </form> 
          <br /><strong>Emoticons</strong><br /> 
          <a href="#" onclick="insertBBCode(bericht, [bomb]);"><img src="images/emoticons/bomb.png" width="16" height="16" alt="Bomb" /></a> 
          <a href="#" onclick="insertBBCode(bericht, [cake]);"><img src="images/emoticons/cake.png" width="16" height="16" alt="Cake" /></a> 
          <a href="#" onclick="insertBBCode(bericht, [nl]);"><img src="images/emoticons/nl.gif" width="16" height="16" alt="Nederland" /></a> 
          <a href="#" onclick="insertBBCode(bericht, [fr]);"><img src="images/emoticons/fr.gif" width="16" height="16" alt="Frankrijk" /></a> 
          <a href="#" onclick="insertBBCode(bericht, [de]);"><img src="images/emoticons/de.gif" width="16" height="16" alt="Duitsland" /></a> 
          <a href="#" onclick="insertBBCode(bericht, [us]);"><img src="images/emoticons/us.gif" width="16" height="16" alt="USA" /></a> 
          <a href="#" onclick="insertBBCode(bericht, [larrow]);"><img src="images/emoticons/arrow_left.gif" width="16" height="16" alt="Arrow left" /></a> 
          <a href="#" onclick="insertBBCode(bericht, [rarrow]);"><img src="images/emoticons/arrow_right.gif" width="16" height="16" alt="Arrow right" /></a><br /> 
          <br /> 
                [COLOR= #0000BB]<?php[/COLOR] 
                  [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]woot[/COLOR][COLOR= #007700]])) {[/COLOR] 
                      [COLOR= #0000BB]$naam[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/ucfirst"]ucfirst[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/strtolower"]strtolower[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]]));[/COLOR]  
                      [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]];[/COLOR] 
                   
                      [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700]) >[/COLOR] [COLOR= #0000BB]100[/COLOR][COLOR= #007700]) {[/COLOR] 
                            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<center>Je bericht is te groot: [/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000] van de 100 tekens</center>[/COLOR][COLOR= #007700]; 
                      }[/COLOR] 
                      [URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$naam[/COLOR][COLOR= #007700])) {[/COLOR] 
                        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<center>Je hebt geen naam ingevuld.</center>[/COLOR][COLOR= #007700]; 
                      }[/COLOR] 
                      [URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700])) {[/COLOR] 
                        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<center>Je hebt geen bericht ingevuld.</center>[/COLOR][COLOR= #007700]; 
                      }[/COLOR] 
                      [URL="http://www.php.net/elseif"]elseif[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$naam[/COLOR][COLOR= #007700]) >[/COLOR] [COLOR= #0000BB]15[/COLOR][COLOR= #007700]) {[/COLOR] 
                        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<center>Je naam heeft meer dan 15 tekens</center>[/COLOR][COLOR= #007700];     
                      }[/COLOR] 
                      [URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]last_session_request[/COLOR][COLOR= #007700]] >[/COLOR] [URL="http://www.php.net/time"]time[/URL][COLOR= #007700]() -[/COLOR] [COLOR= #0000BB]10[/COLOR][COLOR= #007700]){[/COLOR] 
                        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<center>Je kan maar eens in de 10 seconden een bericht posten</center>[/COLOR][COLOR= #007700]; 
                      }[/COLOR] 
                      [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR] 
                        [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO talkbalk (naam, bericht, ip) VALUES ("[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_escape_string"]mysql_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$naam[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000]", "[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_escape_string"]mysql_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000]","[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]")"[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR] 
                        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<center><strong><font color=red>Je bericht is geplaatst!</font></strong></center>"[/COLOR][COLOR= #007700];[/COLOR] 
                        [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]last_session_request[/COLOR][COLOR= #007700]] =[/COLOR] [URL="http://www.php.net/time"]time[/URL][COLOR= #007700](); 
                      }                                                                                                
                  }[/COLOR] 
                ?></h3></div> 
<div id="leftcontentfooter"></div></div> 
<div id="rightcontent"><h2>Log In </h2> <h3> Binnenkort kan je hier inloggen  
</h3></div> 

<div id="berichten"><h6><marquee>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]weergeef.php[/COLOR][COLOR= #007700]);[/COLOR] ?></marquee></h6></div></div>  
<div id="footer"><h6> Clubpenguinissupercool - alle rechten voorbehouden, niet kopieren, voor vragen mailen naar CPISC@Live.be</h6></div> 

</body> 
</html>


Dit is joeriwii.one2xs.nl/plaats.php

Wat moet ik dan veranderen?
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
$HTTP_COOKIE_VARS["achtergrond"] kan ook gewoon $_COOKIE[achtergrond] worden
maar daar ligt het niet aan denk ik

doe eens op die andere pagina:

[COLOR= #0000BB]<?[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"FORUMCODE0"[/COLOR][COLOR= #007700];[/COLOR]
?>


en kijk of de cookie er wel staat
0
Joeri

Lid · Topicstarter

Berichten
5.737
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Maar op welke positie dan bloos
[COLOR= #0000BB]<?php[/COLOR]

    [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]parser.php[/COLOR][COLOR= #007700]);[/COLOR]
    [COLOR= #FF8000]// Database details[/COLOR]
    [COLOR= #0000BB]$name_db[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"joeriwii_cpiscool"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Name of database[/COLOR]
    [COLOR= #0000BB]$user_db[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"joeriwii_cpcool"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Username for database[/COLOR]
    [COLOR= #0000BB]$pass_db[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"******"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Password for database[/COLOR]
    [COLOR= #0000BB]$host_db[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"localhost"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Host for database[/COLOR]
    [COLOR= #0000BB]$connect_db[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$host_db[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$user_db[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$pass_db[/COLOR][COLOR= #007700]);[/COLOR]

    [COLOR= #FF8000]// Making connection to our database         [/COLOR]
    [URL="http://www.php.net/mysql_select_db"]mysql_select_db[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$name_db[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$connect_db[/COLOR][COLOR= #007700]);[/COLOR] 
[COLOR= #0000BB]$achtergrond[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]kleur[/COLOR][COLOR= #007700]];[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]submit[/COLOR][COLOR= #007700]]))
{[/COLOR]
    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700](![/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$achtergrond[/COLOR][COLOR= #007700]))
    {[/COLOR]
        [URL="http://www.php.net/setcookie"]setcookie[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"achtergrond"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$achtergrond[/COLOR][COLOR= #007700]);[/COLOR]
        [COLOR= #0000BB]$form[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Achtergrond verandert naar: "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$achtergrond[/COLOR][COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$meta[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"<meta http-equiv="refresh" content="3;url=achtergrond2.php" />"[/COLOR][COLOR= #007700];
    }[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
        [COLOR= #0000BB]$form[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Geen geldigen achtergrond."[/COLOR][COLOR= #007700];
    }    
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
    [COLOR= #0000BB]$form[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"<form method=POST action=achtergrond2.php>
    <p>
    <input type=radio value=#333333 checked name=kleur>Grijs<br>
    <input type=radio name=kleur value=#666666>Grijzer<br>
    <input type=radio name=kleur value=#999999>Grijst :P<br>
    <input type=submit value=Submit name=submit>
</form>
"[/COLOR][COLOR= #007700];
}[/COLOR]
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet" type="text/css" href="opmaak.css" />
<title>CPiscool | Voor alles over cp</title>

  <script type="text/javascript">
  function insertBBCode(elementID, bbCode)
{
    if (typeof elementID === undefined || typeof bbCode === undefined) return;
    if (document.getElementById(elementID)) {
        var elementObject = document.getElementById(elementID);
        if (document.selection) { // IE
            elementObject.focus();
            var sel = document.selection.createRange();
            sel.text = bbCode;
        } else if (elementObject.selectionStart || elementObject.selectionStart == 0) {
            var startPos = elementObject.selectionStart;
            var endPos = elementObject.selectionEnd;
            elementObject.value = elementObject.value.substring(0, startPos) + bbCode + elementObject.value.substring(endPos, elementObject.value.length);
        } else {
            elementObject.value += bbCode;
        }
        elementObject.focus();
    }
}
</script>

</head>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$meta[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<body bgcolor="[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700](![/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$HTTP_COOKIE_VARS[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"achtergrond"[/COLOR][COLOR= #007700]])) {[/COLOR][URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"#363636"[/COLOR][COLOR= #007700]; }[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$HTTP_COOKIE_VARS[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]achtergrond[/COLOR][COLOR= #007700]];}[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]">"[/COLOR][COLOR= #007700];[/COLOR]
?>

<div id="header"></div>

<div id="menu"> <h1> <a title="home" href="index.php" target="_self" class="menu">Home</a> |
<a title="Nieuws" href="nieuws.php" target="_self" class="menu">Nieuws</a> |
<a title="CP-paginas" href="paginas.php" target="_self" class="menu">CP-paginas</a> |
<a title="Adverteren" href="Adverteren.php" target="_self" class="menu">Adverteren</a>|
<a title="Inloggen" href="inloggen.php" target="_self" class="menu">Inloggen</a> |
<a title="Berichtenbalk" href="plaats.php" target="_self" class="menu">Berichtenbalk</a> |

<a title="Contact" href="contact.php" target="_self" class="menu">Contact</a> |
<a title="Settings" href="achtergrond2.php" target="_self" class="menu">Instellingen</a> |

 </h1> </div>
<div id="content">
<div id="leftcontent">
    <div id="leftcontentheader"></div>
    <div id="leftcontentachtergrond"><h2>Welkom</h2>
<h3>
Welkom op CPiscool we hebben onderhoud
<br>

            </h3></div>

<div id="leftcontentfooter"></div></div>
<div id="rightcontent"><h2>Log In </h2> <h3> Binnenkort kan je hier inloggen  </h3></div></div>

<div id="berichtenbg">
<div id="berichten"><h6><marquee>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]weergeef.php[/COLOR][COLOR= #007700]);[/COLOR] ?></marquee></h6></div></div>

<div id="footer"><h6> Clubpenguinissupercool - alle rechten voorbehouden, niet kopieren, voor vragen mailen naar CPISC@Live.be</h6></div>

</body>
</html>
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
verander regel 68 eens met dit:

if (!isset($HTTP_COOKIE_VARS["achtergrond"])) {echo "#363636"; }else{ echo $HTTP_COOKIE_VARS[achtergrond];}

echo (isset($_COOKIE[achtergrond]) ? $_COOKIE[achtergrond] : #464646);
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren