<!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=utf-8" />
<title>Hulp chat</title>
<SCRIPT LANGUAGE="JavaScript" TYPE="TEXT/JAVASCRIPT">
window.onload=msgsget()
function msgsget()
{
alert("test");
document.URL=(#);
alert("tet");
}
</script>
<style type="text/css">
<!--
#apDiv1 {
position:absolute;
width:200px;
height:115px;
z-index:1;
left: 380px;
top: 48px;
}
body,td,th {
font-family: Verdana, Geneva, sans-serif;
color: #000;
font-weight: bold;
}
h1 {
font-size: 16px;
}
h2 {
font-size: 12px;
color: #000;
}
h1,h2,h3,h4,h5,h6 {
font-family: Courier New, Courier, monospace;
font-weight: bold;
vertical-align: bottom;
}
.txt {
font-family: Arial, Helvetica, sans-serif;
font-style: normal;
font-weight: bold;
color: #000;
width: 188px;
border: thin solid #333;
}
.btn {
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
color: #000;
border: thin solid #333;
width: 64px;
}
a {
font-family: "Courier New", Courier, monospace;
color: #F0F;
font-size: 12px;
font-weight: bold;
}
a:visited {
color: #F0F;
text-decoration: none;
font-size: 12px;
font-weight: bold;
}
a:hover {
color: #C0F;
text-decoration: underline;
font-size: 12px;
font-weight: bold;
}
a:active {
color: #F0F;
font-family: "Courier New", Courier, monospace;
font-weight: bold;
font-size: 12px;
text-decoration: none;
}
.box {
font-family: Arial, Helvetica, sans-serif;
font-style: normal;
font-weight: bold;
height: 250px;
width: 257px;
border: thin solid #333;
font-size: 12px;
}
.txt2 {
color: #F00;
word-spacing: normal;
letter-spacing: normal;
}
.txt2 {
font-size: 10px;
color: #000;
}
.txt2 .txt2 strong {
color: #F00;
}
.linktxt {
font-family: "Courier New", Courier, monospace;
font-size: 10px;
font-weight: bold;
color: #000;
font-style: italic;
}
.linktxt strong a {
font-style: normal;
}
a:link {
text-decoration: none;
}
.invisible {
visibility: hidden;
}
-->
</style>
</head>
<body bgcolor="#00CC66" text="#000000" link="#FF00FF" vlink="#FF00FF" alink="#CC00FF">
<p>
<textarea name="msgs" cols="45" rows="5" class="box" id="msgs"><?php echo file_get_contents("msgs.txt");?></textarea>
</p>
<form method="post" action="" >
<p>
<input type="text" name="txt" class="txt" id="txt"/>
<input name="submit" type="submit" value="Verzend" class="btn"/>
</p>
</form>
<?php
if(($_SERVER[ 'REQUEST_METHOD' ] == 'POST') )
{
if(trim($_POST['txt']) == "" )
{
echo "Veld is leeg.";
}
else
{
$handle = fopen("msgs.txt","w");
fwrite($handle,$_POST['txt4'] . $_POST['txt3'] . $_POST['txt2'] . $_POST['space'] . $_POST['txt'] );
fclose($handle);
}
}
?>
</p>
<p><a href="http://www.kapstok-shop.nl" target="_blank">Kapstok-Shop.nl</a></p>
<p>
<label>
<input name="space" type="text" class="invisible" id="space" value=" " />
</label>
<textarea id="txt2" name="txt2" style="visibility:hidden">
<?php echo file_get_contents("naam.txt"); ?>
</textarea>
<textarea id="txt3" name="txt3" style="visibility:hidden">
<?php echo file_get_contents("msgs.txt"); ?>
</textarea>
<textarea id="txt4" name="txt4" style="visibility:hidden">
</textarea>
</p>
</body>
</html>