%PDF- %PDF-
Direktori : /var/www_old/ |
Current File : //var/www_old/addlines.php__b81eaf3 |
<?php if(isset($_POST['text'])) { header("Content-type: text/plain; charset=UTF-8"); $text = str_replace("\r\n", "\n", $_POST['text']); $text = str_replace("\r", "\n", $text); $lines = explode("\n", $text); foreach($lines as $l) { if(trim($l) == "") continue; echo trim($l)."\n\n"; } return; } ?> <html> <head> <title>Add lines</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <form action="addlines.php" method="post"> <table width="700" border="0"> <tr> <td>Text:</td> <td><textarea cols="90" rows="20" name="text"></textarea></td> </tr> <tr> <td> </td> <td><input type="submit" value="Submit" name="submit"></td> </tr> </table> </form> </body> </html>