Page 1 of 1

Printing Variables After Post

Posted: Tue Jan 13, 2009 1:22 pm
by octopusgrabbus
I need to examine form variables after they have posted. What functions should I be looking at to do this? I have tried print, but the values print before the post, not after, and I need to see the "after" values.

Re: Printing Variables After Post

Posted: Tue Jan 13, 2009 1:29 pm
by icesolid

Code: Select all

if($_POST) {
    echo $_POST['field_name_from_form_here'];
    echo $_POST['another_field_name_from_form_here'];
}
?>

Re: Printing Variables After Post

Posted: Tue Jan 13, 2009 1:38 pm
by octopusgrabbus
icesolid wrote:

Code: Select all

if($_POST) {
    echo $_POST['field_name_from_form_here'];
    echo $_POST['another_field_name_from_form_here'];
}
?>
Thank you for answering. It might make sense for me to provide a little more information. I am testing an web-site API to an online payment processor. I am getting a page back from them with a code that tells me that one or more of the form parameters is wrong. I added the if($_POST) code, but never see the output, because I see the error page first.

Any ideas on how to get around this?

Re: Printing Variables After Post

Posted: Tue Jan 13, 2009 2:12 pm
by icesolid
Post some code here so I can see what you are trying to do. Your explaination is confusing.