Ok here's what I have done (seems simple enough to do):
(there is more but this is all that is needed to understand)
<b>Please fill in this form to report the current server password</b>
<br><br>
<form method=\"post\" action=\"dopw.php\">
Password: <input type=\"text\" name=\"currentpass\" size=\"10\">
<br>
<input type=\"submit\" value=\"Submit\">
</form>
And here is dopw.php:
<?
$newfile = @fopen("http://cgi-bin.spaceports.com/~drummerl/currentpass.txt", "w+") or die("Couldn't open file.");
@fwrite("http://cgi-bin.spaceports.com/~drummerl/currentpass.txt", $currentpass) or die("Couldn't write to file.");
$msg = "<P>Password has been changed..</p>";
fclose("http://cgi-bin.spaceports.com/~drummerl/currentpass.txt");
?>
<HEAD>
<TITLE>Server Password</TITLE>
</HEAD>
<BODY>
<? echo "$msg it is now <b>$currentpass</b>"; ?>
</BODY>
This script just takes input from a user and saves it to a blank file (currentpass.txt) and then I do the include command to display the results for every user to see. My problem is that It refuses to write to the file. I have even tried chmod'ing the txt file to give everyone permission to write to it. Any suggestions?