Jump to content

PHP Scripting Error


s4kim

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.