Hey all!

Im trying to submit a very basic form to phpinfo():

<form action='?' method='POST'>
        <input type='hidden' name='foo' value='bar' />
        <input type='submit' />
</form>
<?php
        error_reporting(E_ALL);
        echo 'var_dump: ';
        var_dump($_POST);
        echo '<br>readfile: ';
        readfile("php://input")
        
        phpinfo();
?>

When i use the button to submit the form and it loads the new page I get:

var_dump: array(0) { }
readfile: foo=bar

I would expect the $_POST var to be filled cause the readfile does work. Also, get requests, cookies and sessions do work... all cept for the POST data. I couldn't find any errors in the apache error_log.

I think it's not browser related because I tested it another server and it did work using FF and IE7.

Im using PHP Version 5.2.4_p20070914-pl2-gentoo, with suhosin and the ZendOptimizer on Linux AMD64. I've also set the max_post and max_upload to 1024M for testing... Nothing works... :(

Does anyone have a direction for me? Been using php for years but have never seen anything like this...

Thanks!

-Mackatack

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to