advanced_form_post.php 837 B

12345678910111213141516171819202122232425262728
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Advanced form save</title>
  5. <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
  6. </head>
  7. <body>
  8. <?php
  9. error_reporting(0);
  10. require_once 'utils.php';
  11. if (isset($_POST['select_multiple_numbers']) && false !== strpos($_POST['select_multiple_numbers'][0], ',')) {
  12. $_POST['select_multiple_numbers'] = explode(',', $_POST['select_multiple_numbers'][0]);
  13. }
  14. $_POST['agreement'] = isset($_POST['agreement']) ? 'on' : 'off';
  15. ksort($_POST);
  16. echo str_replace('>', '', var_export(html_escape_value($_POST), true)) . "\n";
  17. if (isset($_FILES['about']) && file_exists($_FILES['about']['tmp_name'])) {
  18. echo html_escape_value($_FILES['about']['name']) . "\n";
  19. echo html_escape_value(file_get_contents($_FILES['about']['tmp_name']));
  20. } else {
  21. echo "no file";
  22. }
  23. ?>
  24. </body>
  25. </html>