Occasionally 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