Form Processing
| From: | joe at jWebMedia dot com | Date: | Mon, 21 Aug 2000 21:56:42 +0000 |
| Subject: | Form Processing | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-12818@lists.php.net to get a copy of this message | ||
I am trying to get a php script to read the stdin from a form and print
a line for each value there. I need to check if someone is going to pay
with a credit card. If so, I need to display them a different page. In
addition, the script needs to send off an email regardless. I have tried
to read the stdin like:
$fp = fopen("php://stdin","r");
$contents = fread($fp, 500000); <-- This number is just for testing
now...
if I echo $contents - it says it's an array - so I try echo
$contents[0]; and get nothing. I've also tried $contents =
parse_url($QUERY_STRING); and $REQUEST_URI as I saw in the users
additions to the manual and on the list archives. What am I doing wrong?
Or am I way off on my approach to this? Thanks,
Joe