12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- Multipart Form POST Data
- return <<<END
- Content-Type=multipart/form-data; boundary=
- Content-Length=862
- END;
- return <<<END
- CONTENT_TYPE=multipart/form-data; boundary=
- CONTENT_LENGTH=862
- END;
- Content-Disposition: form-data; name="entry"
- entry box
- Content-Disposition: form-data; name="password"
- password box
- Content-Disposition: form-data; name="radio1"
- test 1
- Content-Disposition: form-data; name="checkbox1"
- test 1
- Content-Disposition: form-data; name="choices"
- Choice 1
- Content-Disposition: form-data; name="choices"
- Choice 2
- Content-Disposition: form-data; name="file"; filename="info.php"
- Content-Type: application/octet-stream
- <?php
- phpinfo();
- ?>
- <?php
- error_reporting(0);
- print_r($_POST);
- print_r($_FILES);
- ?>
- Array
- (
- [entry] => entry box
- [password] => password box
- [radio1] => test 1
- [checkbox1] => test 1
- [choices] => Choice 2
- )
- Array
- (
- [file] => Array
- (
- [name] => info.php
- [type] => application/octet-stream
- [tmp_name] => %s
- [error] => 0
- [size] => 21
- )
- )
|