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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.