| Posted by Chung Leong on 06/16/10 11:49 
yawnmoth wrote:> I tried using php://input in the following script but nothing is output
 > when I run it:
 >
 > <form action="test.php" method="post">
 >   <input type="text" value="demo" />
 >   <input type="submit" />
 > </form>
 > <?php
 > $fp = fopen('php://input','r');
 > while (!feof($fp))
 >   echo fgets($fp);
 > fclose($fp);
 > ?>
 >
 > Any ideas as to what's being done wrong?
 
 I'm pretty sure that you can't get at the input data through
 php://input once PHP processes it.
  Navigation: [Reply to this message] |