Here is the code i created.... How do i do the ASCII equivalent ???
<?
if ($name==$){echo "<SCRIPT language='JavaScript'>document.location = 'http://www.spep.nl/games/index.php'</script>"; exit;}
if ($aAuth == ""){ echo"<SCRIPT language='JavaScript'>document.location = 'index.php?page=sign_in'</script>"; exit; }
if ($sAuth == ""){ echo"<SCRIPT language='JavaScript'>document.location = 'index.php?page=sign_in'</script>"; exit; }
if ($aAuth != $from){echo "Cheater";}
if ($ac == "sent"){
echo"<form action=\"?ac=sent1&name=$name&from=$aAuth\" name=postMsg method=post class=formStyle>";
echo "<br>The message will be send to $name <br>
<textarea name=text cols=38 rows=10 WRAP=VIRTUAL class=textForm></textarea>
<br><INPUT TYPE=SUBMIT VALUE=\"Send message\" class=inputButton>
<a href=\"javascript:window.close()\">Cancel</a><br>";
}
if ($ac == "sent1" ){
$text = eregi_replace("<", " No < allowed", $text);
$text = eregi_replace("&#", ":P", $text);
$text = htmlspecialchars($text);
$text = htmlentities($text);
$text = addslashes($text);
$host = "xxxxxx";
$user = "xxxxxx";
$pass = "xxxxxxx";
$db = mysql_connect($host,$user,$pass) or die ("Database connection failed");
mysql_select_db("xxxxxxxx",$db) or die ("couldn't select database");
$datum = date("d-m H:i:s");
mysql_query("INSERT INTO `pop` (`id`, `from`, `to`, `date`, `text`) VALUES ('', '$from', '$name', '$date', '$text') ")or die(mysql_error());
echo "Message is send<br>
<INPUT TYPE=SUBMIT VALUE=\"close window \" class=inputButton>
<a href=\"javascript:window.close()\"><B>CLOSE WINDOW</B></a>";
}
?>