Printing Variables After Post
Moderator: General Moderators
-
octopusgrabbus
- Forum Newbie
- Posts: 7
- Joined: Tue Jan 13, 2009 1:10 pm
Printing Variables After Post
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
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
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.icesolid wrote:Code: Select all
if($_POST) { echo $_POST['field_name_from_form_here']; echo $_POST['another_field_name_from_form_here']; } ?>
Any ideas on how to get around this?
Re: Printing Variables After Post
Post some code here so I can see what you are trying to do. Your explaination is confusing.