Hi all, being a user at webfreaks for the last 2 years, their hard drive crashed a few weeks ago and now my simple PHP text editor will not work, I know they have done something on their end because it worked for the last two years. Here is the code that once worked: It basically showed a list of text which I could edit online, nothing special but nice and quick, anyone know why this won't work anymore? The error I'm getting is: Notice: Undefined variable: submit in /home2/impulse/public_html/admin/edit.php on line 3 Notice: Undefined variable: data in /home2/impulse/public_html/admin/edit.php on line 11 However, I never use to get this error until the server fiddled with something :( I'm at my wits end, any help would be GREATLY appreciated. FILENAME: edit.php <?php if ($submit) { $fp = fopen("data.txt", "w"); fwrite($fp, stripslashes($newdata)); fclose($fp); } $fp = fopen("data.txt", "r"); while (!feof($fp)) { $data .= fgets($fp, 4096); } fclose($fp); ?> <html> <head> <title>simple text editor</title> </head> <?php $filemod = filemtime('data.txt'); $filemodtime = date("F j Y h:i:s A", $filemod); echo "<center>This File was last updated $filemodtime</center>"; ?> </font> <CENTER> <form action="<? print $PHP_SELF; ?>" method="post"> <textarea name="newdata" rows="26" cols="40"> <? print $data; ?> </textarea><br> <input type="submit" name="submit" value="Submit"></form>