source: other-projects/trunk/realistic-books/src/send.php@ 20889

Last change on this file since 20889 was 20889, checked in by anna, 12 years ago

Add new version of Realistic Books that include highlighting and searching

  • Property svn:executable set to *
File size: 277 bytes
Line 
1<?php
2$msg = stripslashes(urldecode($_POST["msgText"]));
3$fname = stripslashes(urldecode($_POST["msgFile"]));
4$file = fopen($fname,"w");
5if (!$file) die ("cannot open the file");
6fwrite($file, $msg);
7fclose($file);
8echo "The book has been successfully been saved";
9?>
Note: See TracBrowser for help on using the repository browser.