s4kim Posted February 16, 2007 Share Posted February 16, 2007 Hey, I am Kim???. I am having a problem with the following scripting. The form no longer lets us update the information in the text field when we submit it. <form action="processscript.php" method="post"> <textarea rows="25" cols="40" name="content"> <? $fn = "news.txt"; print htmlspecialchars(implode("",file($fn))); ?> </textarea><br> <input type="submit" value="Change!"> </form> Thank you Quote Link to comment Share on other sites More sharing options...
simcoweb Posted February 16, 2007 Share Posted February 16, 2007 Please show us the code in the 'processscript.php' file. Quote Link to comment Share on other sites More sharing options...
s4kim Posted February 16, 2007 Author Share Posted February 16, 2007 The script for processscript.php is: <? $fn = "news.txt"; $content = stripslashes($_POST['content']); $fp = fopen($fn,"w") or die ("Error opening file in write mode!"); fputs($fp,$content); fclose($fp) or die ("Error closing file!"); echo "<meta http-equiv=\"refresh\" content=\"0; url=http://origin-www.abundantlife.tv/new2006site.php\" />\n"; ?> Thank You Quote Link to comment Share on other sites More sharing options...
simcoweb Posted February 16, 2007 Share Posted February 16, 2007 Has this code been modified at all recently? Or is that its original state? Quote Link to comment Share on other sites More sharing options...
s4kim Posted February 16, 2007 Author Share Posted February 16, 2007 I am pretty sure it is in its original state. K. Smith Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.