firstly please copy the script I gave you again because Ive added some changes. also I can see the marquee perfectly well..
UPDATED SCRIPT:
PHP Code:<?php
$file = file_get_contents("rooms.txt");
$newfile = str_replace("||", " ", $file);
echo "<marquee>$newfile</marquee><br /><br />";
echo "<form name=\"roomdropper\" action=\"".$_SERVER['PHP_SELF']."\" method=\"post\">
Room Name: <input type=\"text\" name=\"roomname\" /><br />
Owner: <input type=\"text\" name=\"owner\" /><br />
<input type=\"submit\" value=\"Submit\" name=\"submit\" /><br />
</form>";
if(isset($_POST['submit'])) {
$roomname = $_POST['roomname'];
$owner = $_POST['owner'];
if((!$owner) or (!$roomname)) {
if(!$roomname) {
echo "No roomname submitted!<br />";
}
if(!$owner) {
echo "No owner submitted!<br />";
}
}
else {
$roomname = stripslashes(strip_tags(htmlspecialchars($roomname, ENT_QUOTES)));
$owner = stripslashes(strip_tags(htmlspecialchars($owner, ENT_QUOTES)));
$string = "$roomname - $owner||";
$fp = fopen("rooms.txt", "a+");
fputs($fp, $string);
fclose($fp);
echo "Room submitted! Thanks!";
header("Location: roomdropper.php");
}
}
?>


Reply With Quote


