Hi, say I want to store a filename into a variable, and allow the filename change accordingly.
can I use syntax like
[COLOR=darkred]$filename2="$id.txt";[/COLOR]
$contentstring=$subject."|".$name."|".$date."|".$content."|".$filename1."|".$id."|\n";;
$fp=fopen($filename2, 'a+');
print("<br><b>test</b>");
if ($fp)
{
fwrite($fp,$contentstring);
fclose($fp);
}
else
{
echo ("<br>You cannot open file!");
exit;
}