Printing Variables After Post

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
octopusgrabbus
Forum Newbie
Posts: 7
Joined: Tue Jan 13, 2009 1:10 pm

Printing Variables After Post

Post 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.
icesolid
Forum Regular
Posts: 502
Joined: Mon May 06, 2002 9:36 pm
Location: Buffalo, NY

Re: Printing Variables After Post

Post by icesolid »

Code: Select all

if($_POST) {
    echo $_POST['field_name_from_form_here'];
    echo $_POST['another_field_name_from_form_here'];
}
?>
octopusgrabbus
Forum Newbie
Posts: 7
Joined: Tue Jan 13, 2009 1:10 pm

Re: Printing Variables After Post

Post 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?
icesolid
Forum Regular
Posts: 502
Joined: Mon May 06, 2002 9:36 pm
Location: Buffalo, NY

Re: Printing Variables After Post

Post by icesolid »

Post some code here so I can see what you are trying to do. Your explaination is confusing.
Post Reply