Autor Zpráva
deu
Profil *
Dobry den potreboval bych poradit. Naprogramoval jsem v php forum centrum-security.tym.cz/forum.php , forum mi funguje ve vsech prohlizecich, krome Internet Exploreru. V cem muze byt chyba? Pokud je to nutne poslu zdrojak.
deu
Profil *
eh zapomel jsem napsat zavadu .. v IE nefunguje diakritika...
Manq
Profil
Nemáš ukončené základní tagy, a hlavně je nemáš na správném místě.
<!doctype by měl být první a kořenový element <html> až po něm. Tipoval bych to na to.
deu
Profil *
jo to sem uz skousel .. nema to zadny vliv
deu
Profil *
Tady je teda zdrojak..
<meta http-equif="Content-Type" content="text/html; charset=UTF-8">

<html>
<head>
<title>Forum H&C</title>
<style>
body {background-color:black; color:white; }
.main {border:1px dashed white; width:60%; margin:5; }
.name {background-color:white; color:black; padding:1; }
.text {padding:8; }
input {border:1px solid black; margin:4; }
#textarea {border:2px solid black; background-color:black; color:white; }
#menu {width:100%; padding:3; border:1px dashed white; }
a {color:white; text-decoration:none; cursor:hand; }
a:hover {color:red; }
</style>
</head>
<body>
<div ID="menu">
<a href="index.php?site=1">Taskmgr-win</a>&nbsp;&nbsp;
<a href="index.php?site=2">CMDOW-win</a>&nbsp;&nbsp;
<a href="index.php?site=3">Edit-C</a>&nbsp;&nbsp;
<a href="seznam/">Seznam</a>&nbsp;&nbsp;
<a href="centrum.html">Centrum</a>&nbsp;&nbsp;
<a href="gmail/">Gmail</a>
</div><br>
<form method="get" action="" name="form">
<div class="main">
<div class="name">
<input type="text" name="a" ID="input"><input type="submit" value="Odeslat">&nbsp;&nbsp;
<a onclick="document.form.b.value += '*1'"><img border=0 src="smiles/01.gif"></a>
<a onclick="document.form.b.value += '*2'"><img border=0 src="smiles/02.gif"></a>
<a onclick="document.form.b.value += '*3'"><img border=0 src="smiles/03.gif"></a>
<a onclick="document.form.b.value += '*4'"><img border=0 src="smiles/04.gif"></a>
<a onclick="document.form.b.value += '*5'"><img border=0 src="smiles/05.gif"></a>
<a class="date">
</div>
<textarea style="width:100%" ID="textarea" name="b" rows="3" name="b"></textarea>
</div>
</form>
<hr>
<?php
function divs($jmeno,$text)
{
echo("
<div class="main">
<div class="name">$jmeno</div>
<div class="text">$text</div>
</div>
");
}
function wnum()
{
$fn = fopen("databaze/forum/num.dat","r");
$num = fread($fn,20);
fclose($fn);
$fn = fopen("databaze/forum/num.dat","w");
$num = $num + 1;
fwrite($fn,$num);
fclose($fn);

}
function num()
{
$fn = fopen("databaze/forum/num.dat","r");
$num = fread($fn,20);
fclose($fn);
return $num;
}
function rdata()
{
$ft = fopen("databaze/forum/text.dat","r");
$text = fread($ft,5000);
$wrt = explode(";",$text);
fclose($ft);
return $wrt;
}
function wdata($name,$zprava)
{
$ft = fopen("databaze/forum/text.dat","a");
fwrite($ft,"$name:$zprava;");
}
function smile($smile)
{
$smile = str_replace("*1","<img border=0 src="smiles/01.gif">",$smile);
$smile = str_replace("*2","<img border=0 src="smiles/02.gif">",$smile);
$smile = str_replace("*3","<img border=0 src="smiles/03.gif">",$smile);
$smile = str_replace("*4","<img border=0 src="smiles/04.gif">",$smile);
$smile = str_replace("*5","<img border=0 src="smiles/05.gif">",$smile);
return $smile;
}
if($a and $b and a != "" and b != "")
{
$a = strip_tags($a);
$a = str_replace(":","..",$a);
$b = strip_tags($b);
$b = str_replace(":","..",$b);
$b = nl2br($b);
$b = smile($b);
wdata($a,$b);
wnum();
echo("<script>window.location.replace('?')</script>");
}
$number = num();
$wrt = rdata();
while($number != 0)
{
$number = $number - 1;
$nt = explode(":",$wrt[$number]);
divs($nt[0],$nt[1]);
}
?>
</body>
</html>
deu
Profil *
Fakt sry za to ze sem to tu vubec psal .. jaksi sem si nevsim ze tam mam napsane
<meta http-equif="Content-Type" content="text/html; charset=UTF-8">
misto
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
:-)

Vaše odpověď

Mohlo by se hodit

Nezapomeňte na odkaz na živou ukázku problému.

Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0