Jump to content

Php replacing " " in variables


Jarid

Recommended Posts

I am making a simple online html editor. I wrote a php script that prints the html that you typed in the form into a .html document. The problem is that php is replacing the parentheses with / \ /\ slashes. how do i stop this?

<?php
$text = $_REQUEST['HTML'] ;
$test= "test.html";
$fh = fopen($test, 'w') or die("can't open file");
fwrite($fh, $text);
fclose($fh);
?>

Thank you

Link to comment
https://forums.phpfreaks.com/topic/223740-php-replacing-in-variables/
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.