2 replies [Last post]
jimijamesi's picture
Offline
Joined: 08/19/2007
Juice: 75
Was this information Helpful?

Hi I am fine tuning a payment gateway and would like to view the post data. In other word display the request response info - like a trace or print to screen command that shows you the array or variables or complete map of the post request & response

oslinux's picture
Offline
Joined: 09/06/2007
Juice: 461
Re: post request response

print_r($variable with data);

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: post request response

To make it a little easier to read, I also like enclosing it in pre tags, like so:

<?php
  drupal_set_message
('<pre>'. print_r($variable, TRUE) .'</pre>');
?>