|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2017-04-08 08:46 UTC] javan dot solo at gmail dot com
Description: ------------ I send file invalid size file and other param on form. but $_REQUEST or $_POST is empty! <?php print_r($_REQUEST); ?> Test script: --------------- <?php print_r($_REQUEST); ?> <?php print_r($_POST); ?> PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 17:00:02 2025 UTC |
<!doctype html> <html lang="en"> <body> <form action=".<?php echo $_SERVER['SCRIPT_NAME'] ?>" method="post" enctype="multipart/form-data"> <input type="file" name="file" id="file"> <br> <input type="text" name="txt" id="txt" value="123asd" title="txt"> <br> <input type="submit" value="sumbit"> </form> <pre> <?php if($_SERVER['REQUEST_METHOD'] == 'POST'){ print_r($_REQUEST); print_r($_FILES); die(); } ?> </pre> </body> </html><!doctype html> <html lang="en"> <body> send large file <form action=".<?php echo $_SERVER['SCRIPT_NAME'] ?>" method="post" enctype="multipart/form-data"> <input type="file" name="file" id="file"> <br> <input type="text" name="txt" id="txt" value="123asd" title="txt"> <br> <input type="submit" value="sumbit"> </form> <pre> <?php if($_SERVER['REQUEST_METHOD'] == 'POST'){ print_r($_REQUEST); print_r($_FILES); die(); } ?> </pre> </body> </html>