- <?php
- if($_POST['s']){
- $texttest = $_POST['texttest'];
- $file = fopen ("s.ini", "a+");
- $text = "$texttest";
- $con = fwrite ($file, $text);
- if ($con) {
- echo ("<a href='s.ini'>link</a>");
- }else{
- echo ("no");
- }
- }
- ?>
- <form name="test" method="post" action="index.php">
- <input type="text" name="texttest" />
- <input type="submit" name="s" value="Отправить">
- </form>