CODE (htmlphp):
скопировать код в буфер обмена
скопировать код в буфер обмена
- <?php
- $text = $_POST['text'];
- if (isset($text))
- {
- $templates = fopen('/templates/file.php','w+');
- fwrite($templates, $text);
- unset($text);
- }
- ?>
- <form action="file2.php" method="POST">
- <p align="center"><textarea class="formstyle" name="text" rows="30" cols="130"><?php include("/templates/file.php"); ?></textarea></p>
- <p align="center"><input class="formstyle" type="submit" value="Сохранить" /></p>
- </form>