simpel tagwall
Hej eksperter...Jeg sidder og fumler lidt med at bygge en tagwall. Det skal lige siges at jeg er helt indenfor php.I kan se en demo på:
http://www.snowy.dk/chat_csr/Default.php
Nogen der kan finde nogle fejl i følgene filer?:
Default.php:
<HTML>
<HEAD>
<TITLE>Welcome to my framewall, please leave me a message :)</TITLE>
<script language="javascript">
<!-- Hide script from older browsers
if (top.location != self.location){
top.location = self.location
}
// end of hiding script -->
</script>
</HEAD>
<frameset rows="10%,*,10%" frameborder="0" framespacing="0">
<frame src="menu.php" name="bottom" scrolling="no">
<frame src="beskeder.php" name="beskeder">
<frame src="bottom.php" name="bottom" scrolling="no">
</frameset>
<noframes>
<body><h1>
ERROR: YOUR BROWSER DOESN'T SUPPORT FRAMES ... PLEASE DOWNLOAD A NEWER BROWSER
</h1></body></noframe>
</HTML>
Bottom.php :
<HTML>
<HEAD>
<TITLE>Læs Beskeder</TITLE>
<style>
body {
font-size: 9pt;
font-family: Arial, Sans Serif;
color: #FFFFFF;
}
</style>
</HEAD>
<BODY BGCOLOR="#333333">
<center>
<form method="post" target="beskeder" action="beskeder.php">
Navn: <input type="text" name="navn" style="background-color: #519FE7; border: 2px solid #000000;"> Besked: <input type="text" name="besked" style="background-color: #519FE7; border: 2px solid #000000;"> <input type="submit" value="Skriv" style="background-color: #519FE7; border: 2px solid #000000;">
</form>
</BODY>
</HTML>
beskeder.php:
<html>
<head>
</head>
<body bgcolor="#555555"><p> </p>
<p> </p>
<?
$File = fopen("./msg.txt","w");
fputs($File,$navn,$besked);
fclose($File);
?>
<center>Beskeder</center>
<?php include("msg.txt");
?>
</body>
</html>
MVH
Blue-Dragon