Jump to content

[SOLVED] Saving Textarea Content to Textfile Character Problem


renj0806

Recommended Posts

<?php
$content = $_GET['content'];
$fp = fopen("Test.txt", "a+");
fwrite($fp, $content);
fclose($fp);
?>

 

A simple file writing script.

 

The textarea contains this text : Output "Output"

But the Test.txt has this contents: Output \"Output\"

 

How can i save a textarea content with double quotes(") not being escaped(\") in the textfile?

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.