12345678910111213141516171819202122232425262728 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>Advanced form save</title>
- <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
- </head>
- <body>
- <?php
- error_reporting(0);
- require_once 'utils.php';
- if (isset($_POST['select_multiple_numbers']) && false !== strpos($_POST['select_multiple_numbers'][0], ',')) {
- $_POST['select_multiple_numbers'] = explode(',', $_POST['select_multiple_numbers'][0]);
- }
- $_POST['agreement'] = isset($_POST['agreement']) ? 'on' : 'off';
- ksort($_POST);
- echo str_replace('>', '', var_export(html_escape_value($_POST), true)) . "\n";
- if (isset($_FILES['about']) && file_exists($_FILES['about']['tmp_name'])) {
- echo html_escape_value($_FILES['about']['name']) . "\n";
- echo html_escape_value(file_get_contents($_FILES['about']['tmp_name']));
- } else {
- echo "no file";
- }
- ?>
- </body>
- </html>
|