This blog site is not meant to be any information that is distributed to the general public. It is to serve as shared documentation between the DNSTC developers; however, if you find something useful and would like to use it, go right ahead.

Tuesday, February 7, 2012

Checking the values of a submitted form

phpOccasionally you may way to check to see what data is being submitted form a form.  I have used this simple little code in the past, and it has help solved mysteries while trying to program.  Simply put this code before any section that would save the data to the database and it will display the results of the submitted form to the screen instead of saving it to the database.  Just remember to go in and either comment out the code or remove it.

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



No comments:

Post a Comment