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 Link to comment https://forums.phpfreaks.com/topic/38784-php-scripting-error/ 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. Link to comment https://forums.phpfreaks.com/topic/38784-php-scripting-error/#findComment-186450 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 Link to comment https://forums.phpfreaks.com/topic/38784-php-scripting-error/#findComment-186543 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? Link to comment https://forums.phpfreaks.com/topic/38784-php-scripting-error/#findComment-186584 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 Link to comment https://forums.phpfreaks.com/topic/38784-php-scripting-error/#findComment-186627 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.