I would like to see the raw code sent by an HTML page using the FORM POST function. I would like to mimic this data for a app I am working on.
Is there a way I can output the raw data to the screen as part of a php script?
Thanks
Greg
I would like to see the raw code sent by an HTML page using the FORM POST function. I would like to mimic this data for a app I am working on.
Is there a way I can output the raw data to the screen as part of a php script?
Thanks
Greg
How about print_r($_POST) ?
use the print_r function to display the Post array in human readable format (see http://uk.php.net/manual/en/function.print-r.php)
<?php
die(print_r($_POST));
?>
Any help?
Sorry i posted the same time as mjax
Thank you for the posts, all the methods work well.
Is there a way I can see all the http code that is sent with the headers?
The info defined in http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4 is what I am after.
I am guessing php strips this off and doesn't allow access but I'm not sure.
Thanks
Greg