i am trying to create a text file using php. i want the file to be named by the value passed by a form text box.
i am using the following code, but it also adds ' ' to the file name as well.
please correct me.
<?php
$filename = "textfiles\'$name.txt'";
$fp = fopen($filename, "a");
$strings1 = "line1\nline2\nline3\nline4\nline5";
$write = fputs($fp, $strings1);
fclose($fp);
?>