Hey guys
I have a small problem with my shoutbox. I have to do a project in school and i have to write a shoutbox with php. I have no clue what i have to do. We have to write the shoutbox and we have to put a password infront of it. It would be great if you could help me. How do i have to change the think so that i have a password in it? And my athor problem is that i have to press the button send twice until i pops up in my shoutbox.
<html><head>
</head><body>
<form name="boxform" method="post" action="chat.php">
<textarea name="user_eingaben" cols="50" rows="10" readonly>
<?include("password.txt")?>
</textarea>
<br><input type="text" name="NM" size="20"><br>
<input type="text" name="Nach" size="40"><br>
<input type="submit" name="SB" value="Send"><br>
</form>
<?
$date = getdate();
$time = time();
$z=$date[hours].":".$date[minutes].":".$date[seconds];
$Text="\n".$NM.":".$Nach." ".$z;
$DName="box.txt";
$File=fopen($DName,"a+") or exit("error");
$wr = fputs($File,$Text);
fclose($Datei);
?>
</body>
</html>
thx Fesnator
P.S. i just started in school php and i have no clue what i have to do