hvad viser den ikke html?
hvorfor kan jeg ikke skrive html i felterne!<?
require("config.php");
require("funktioner.php");
$brugerinfo = brugerinfo($_COOKIE[chat_id]);
checksession($brugerinfo[sesid]);
$normal = "#eeeeee";
$hover = "#dddddd";
if ($_POST[action] == "update"){
$free_text = format($_POST[free_text]);
$free_text = nl2br($free_text);
$email = htmlentities($_POST[email]);
$age = format($_POST[age]);
mysql_query("UPDATE chat SET free_text='$free_text',email='$email',age='$age' where id='$brugerinfo[uid]'") or die (mysql_error());
WriteToRemote("",$brugerinfo[id],Language("119"));
header("Location: top.php");
}
?>
<HTML>
<HEAD>
<link rel="stylesheet" type="text/css" HREF="style.css">
</HEAD>
<BODY>
<br>
<?
if ($_GET[action] == "edit"){
?>
<table width="70%" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000" align="center" CLASS="alm-text">
<tr bordercolor="#cbc9c9">
<td bgcolor="#cbc9c9" bordercolor="#cbc9c9">
<div align="center"><b>Profile</b></div>
</td>
</tr>
<tr bgcolor="#eeeeee" onMouseOver="style.backgroundColor='<?=$hover;?>';" onMouseOut="style.backgroundColor='<?=$normal;?>';" bordercolor="#eeeeee">
<td bordercolor="#cbc9c9"> Skriv noget om dig selv. måske en venneliste.</td>
</tr>
</table>
<br>
<br>
<form action=profile.php method=post>
<? $res = mysql_query("SELECT * FROM chat where id='$brugerinfo[uid]'");
$row = mysql_fetch_array($res);?>
<table width="70%" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000" align="center" CLASS="normal">
<tr bordercolor="#cbc9c9">
<td bgcolor="#cbc9c9" bordercolor="#cbc9c9" width="23%">
<div align="left"><b>Nick</b></div>
</td>
<td bgcolor="#eeeeee" bordercolor="#eeeeee" width="77%">
<div align="left">
<?=$brugerinfo[nick];?>
</div>
</td>
</tr>
<tr bgcolor="#eeeeee" onMouseOver="style.backgroundColor='<?=$hover;?>';" onMouseOut="style.backgroundColor='<?=$normal;?>';" bordercolor="#eeeeee">
<td width="23%" bordercolor="#cbc9c9" bgcolor="#cbc9c9">
<div align="left"><b>Alder</b></div>
</td>
<td width="77%">
<div align="left">
<input type="text" name="age" value="<?=$row[age];?>" size="20">
</div>
</td>
</tr>
<tr bgcolor="#eeeeee" onMouseOver="style.backgroundColor='<?=$hover;?>';" onMouseOut="style.backgroundColor='<?=$normal;?>';" bordercolor="#eeeeee">
<td width="23%" bordercolor="#cbc9c9" bgcolor="#cbc9c9"><b>Email adresse</b></td>
<td width="77%">
<input type="text" name="email" value="<?=$row[email];?>" size="20">
</td>
</tr>
<tr bgcolor="#eeeeee" onMouseOver="style.backgroundColor='<?=$hover;?>';" onMouseOut="style.backgroundColor='<?=$normal;?>';" bordercolor="#eeeeee">
<td width="23%" bordercolor="#cbc9c9" bgcolor="#cbc9c9" valign="top"><b>egen fri valgte tekst</b></td>
<td width="77%">
<textarea name="free_text" rows="4" cols="40"><?=br2nl($row[free_text]);?></textarea>
</td>
</tr>
<tr bgcolor="#eeeeee" onMouseOver="style.backgroundColor='<?=$hover;?>';" onMouseOut="style.backgroundColor='<?=$normal;?>';" bordercolor="#eeeeee">
<td width="23%" bordercolor="#cbc9c9" bgcolor="#cbc9c9" valign="top"><b>Update</b></td>
<td width="77%">
<input type="hidden" name="action" value="update">
<input type="submit" name="update" value="Updater min profil :-)">
</td>
</tr>
</table>
</form>
<? }
elseif ($_GET[id]){
$remoteses = brugerinfo($_GET[id]);
$remote = unikinfo($remoteses[uid]);?>
<table width="70%" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000" align="center" class="normal">
<tr>
<td bgcolor="#cbc9c9" bordercolor="#cbc9c9">
<div align="center"><b>profile</b></div>
</td>
</tr>
<tr>
<td bgcolor="#eeeeee" bordercolor="#eeeeee">for at skrive i din egen profil klik <a href="profile.php?action=edit">her</a></td>
</tr>
</table>
<br>
<table width="70%" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000" align="center" class="normal">
<tr>
<td bgcolor="#cbc9c9" bordercolor="#cbc9c9" width="23%"><b>Nick</b></td>
<td bgcolor="#eeeeee" bordercolor="#eeeeee" width="77%">
<?=$remote[nick];?>
</td>
</tr>
<tr>
<td bgcolor="#cbc9c9" bordercolor="#cbc9c9" width="23%"><b>Alder</b></td>
<td bgcolor="#eeeeee" bordercolor="#eeeeee" width="77%">
<?=$remote[age];?>
</td>
</tr>
<tr>
<td bgcolor="#cbc9c9" bordercolor="#cbc9c9" width="23%"><b>Email</b></td>
<td bgcolor="#eeeeee" bordercolor="#eeeeee" width="77%">
<?=$remote[email];?>
</td>
</tr>
<tr>
<td bgcolor="#cbc9c9" bordercolor="#cbc9c9" width="23%" valign="top"><b>Online
time </b></td>
<td bgcolor="#eeeeee" bordercolor="#eeeeee" width="77%">
<? $onlinetid_ialt = $remoteses[logintime] - $remote[onlinetid];
print OnlineTid($onlinetid_ialt,time());?>
</td>
</tr>
<tr>
<td bgcolor="#cbc9c9" bordercolor="#cbc9c9" width="23%" valign="top"><b>Chatlines</b></td>
<td bgcolor="#eeeeee" bordercolor="#eeeeee" width="77%">
<?$chatlines = $remoteses[chatlines] + $remote[chatlines];
print "$chatlines";?>
</td>
</tr>
<tr>
<td bgcolor="#cbc9c9" bordercolor="#cbc9c9" width="23%" valign="top"><b>rubiner</b></td>
<td bgcolor="#eeeeee" bordercolor="#eeeeee" width="77%">
<?$rubiner = rubiner($remoteses[logintime]) + $remote[rubiner];
print "$rubiner";?>
</td>
</tr>
<tr>
<td bgcolor="#cbc9c9" bordercolor="#cbc9c9" width="23%" valign="top"><b>egen fri valgte
tekst</b></td>
<td bgcolor="#eeeeee" bordercolor="#eeeeee" width="77%">
<?=$remote[free_text];?>
</td>
</tr>
</table>
<? } ?>
<br>
<div align="center" CLASS="alm-text"><a href="top.php">Tilbage til chatten</a></div>
</BODY>
