Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Universal "Read Post Variables" Program? 1

Status
Not open for further replies.

markcrobinson

Programmer
Dec 14, 2009
10
US
Anyone aware of a program that will allow me to read the data sent by a post form?
I'm trying to debug an interface to my shopping cart and this would be a very helpful tool.
Seems like an obvious utility -- but I'm not able to find it.

Thanks!

Mark
 
Not sure exactly what you want but, you can use something simple like

print_r($_POST); to dump everything inside the $_POST superglobal.

Is that what you mean?

You may want to echo <pre> tags around the print_r command so that the output's format is respected.

echo "<pre>";
print_r($_POST);
echo "</pre>";




----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
EXACTLY! Thank you!
Three days I've been searching for this!!

For others who come across this thread:

1 - Create a file called readform.php containing:

<?php
echo "<pre>";
print_r($_POST);
echo "</pre>";

2 - In your form code, begin with:
<form action=" url>/readform.php" method="post">
 
i sometimes wonder what the strapline for this website is.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top