I am making a basic admin panel, however, I can
t seem to get the news to work, all it needs to do is open the news.txt and post the words from the text area in there, however. It will not do this. I was wondering if you could help.
<?php
/////Begin user System////
$user1 = "";
$user2 = "";
$user3 = "";
$user4 = "";
$user5 = "";
$user6 = "";
///////////User Passwords/////////
$pass1 = "";
$pass2 = "";
$pass3 = "";
$pass4 = "";
$pass5 = "";
$pass6 = "";
////////////Change nothing below/////////
////////////Login Variables/////////////
$self = $_SERVER[’PHP_SELF’];
$user = $_Post['user'];
$pass = $_Post['pass'];
$news = $_Post['news'];
///////////////Write to file/////////////
$file = "news.txt";
$fh = fopen($file, "a") or die("can't open records");
fwrite($fh, "$news");
fclose($fh);
/////////////////Final Product////////////////////
$final = "<center>
<h3>Edit The News in the Box Below</h3>
<br>
<br>
<br>
<form action='$self' method='post'>
<textarea name='news' rows='10' cols='60'>Insert News Here</textarea>
<input type='submit' value='Add News'></center>";
//////////////////////////////////////////////////
echo "$final";
?>