Location: PHPKode > scripts > PHP Photo Album > phpalbum/update_text.php
<?php
$dir= $_POST['dir'];
$file= $_POST['file'];
$myFile = $dir.'/'.$file;
$fh = fopen($myFile, 'w')or die("can't open file");
			eval("\$info=\$_POST[\"info\"];");  //You've got the value in $info
			if (empty($info)) {
			$info = "";
			} 
			$info=preg_replace('`[\n]`','',$info);
			$info=preg_replace('`[\r]`','<br>',$info);


$stringData = $info;
fwrite($fh, $stringData);
//echo $stringData."<br>";
fclose($fh); 

echo '<script language="JavaScript" type="text/javascript">';
echo 'top.location.href="cp.php";';
echo '</script>';


exit;
?>

Return current item: PHP Photo Album